/*
 * VSOP87.h
 *
 * Copyright (c) 2017 by Sebastien MARCHAND (Web:www.marscaper.com, Email:sebastien@marscaper.com)
 */
/*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __VSOP87_H__
#define __VSOP87_H__

#if ARDUINO
#define CONST const PROGMEM
#else
#define CONST const
#endif

struct VSOP87Coefficient
{
    FLoat A;
    FLoat B;
    FLoat C;
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Mercury.
//

CONST VSOP87Coefficient L0MercuryCoefficients[]
{
    {20982.152178,  0.000000, 0.000000},
    {6402.297634, 1.483020, 26087.902344},
    {2246.395780, 4.477855, 52175.804688},
    {924.849718,  1.165203, 78263.710938},
    {406.927512,  4.119692, 104351.609375},
    {185.908580,  0.779310, 130439.515625},
    {87.080423, 3.713500, 156527.421875},
    {59.665736, 1.512000, 1109.378540},
    {42.461747, 4.103300, 5661.332031},
    {41.545156, 0.358300, 182615.328125},
    {39.874804, 2.995100, 25028.521484},
    {36.945906, 4.599200, 27197.281250},
    {31.890437, 0.880300, 31749.234375},
    {26.720778, 1.541000, 24978.525391},
    {25.377155, 5.303000, 21535.949219},
    {21.236761, 6.050000, 51116.425781},
    {20.099751, 3.282000, 208703.218750},
    {18.761663, 5.242000, 20426.570312},
    {18.574176, 2.792000, 15874.618164},
    {18.520259, 5.765000, 955.599976},
    {18.411953, 5.863000, 25558.212891},
    {18.027756, 1.337000, 53285.183594},
    {16.522712, 2.495000, 529.690979},
    {16.248077, 3.917000, 57837.136719},
    {16.124515, 0.987000, 4551.953125},
    {15.459625, 0.113000, 1059.381958},
    {15.329710, 0.267000, 11322.664062},
    {14.730920, 0.660000, 13521.750977},
    {14.456832, 2.092000, 47623.851562},
    {13.527749, 2.629000, 27043.503906},
    {13.490738, 2.434000, 25661.304688},
    {13.266499, 4.536000, 51066.429688},
    {13.152946, 2.452000, 24498.830078},
    {11.916375, 3.360000, 37410.566406},
    {11.747340, 0.291000, 10213.286133},
    {11.180340, 3.721000, 39609.656250},
    {10.862780, 2.781000, 77204.328125},
    {10.295630, 4.206000, 19804.826172}
};

CONST VSOP87Coefficient L1MercuryCoefficients[] =
{
    {1615182.561268,  0.000000, 0.000000},
    {1061.135241, 6.217040, 26087.902344},
    {550.882020,  3.055655, 52175.804688},
    {283.792177,  6.104550, 78263.710938},
    {145.756647,  2.835320, 104351.609375},
    {74.779676, 5.826800, 130439.515625},
    {38.366652, 2.518500, 156527.421875},
    {19.697716, 5.480000, 182615.328125},
    {18.761663, 3.052000, 1109.379028},
    {10.148892, 2.149000, 208703.218750},
    {9.695360,  6.120000, 27197.279297},
    {9.539392,  0.000000, 24978.519531},
    {7.211103,  5.620000, 5661.330078},
    {6.633250,  4.570000, 25028.519531},
    {5.291503,  3.040000, 51066.429688},
    {5.196152,  5.090000, 234791.125000}
};

CONST VSOP87Coefficient L2MercuryCoefficients[] =
{
    {230.325856,  0.000000, 0.000000},
    {130.015384,  4.690720, 26087.902344},
    {86.005814, 1.347400, 52175.804688},
    {54.936327, 4.456400, 78263.710938},
    {33.271610, 1.262300, 104351.609375},
    {19.442222, 4.320000, 130439.515625},
    {11.090537, 1.069000, 156527.421875},
    {6.244998,  4.080000, 182615.312500},
    {3.872983,  4.630000, 1109.380005},
    {3.464102,  0.790000, 208703.234375}
};

CONST VSOP87Coefficient L3MercuryCoefficients[] =
{
    {13.711309, 0.035000, 52175.804688},
    {11.916375, 3.125000, 26087.902344},
    {9.848858,  3.000000, 78263.710938},
    {6.633250,  6.020000, 104351.609375},
    {5.916080,  0.000000, 0.000000},
    {4.242641,  2.780000, 130439.523438},
    {2.645751,  5.820000, 156527.421875},
    {1.732051,  2.570000, 182615.312500}
};

CONST VSOP87Coefficient L4MercuryCoefficients[] =
{
    {10.677078, 3.141600, 0.000000},
    {1.732051,  2.030000, 26087.900391},
    {1.414214,  1.420000, 78263.710938},
    {1.414214,  4.500000, 52175.808594},
    {1.000000,  4.500000, 104351.609375},
    {1.000000,  1.270000, 130439.523438}
};

CONST VSOP87Coefficient L5MercuryCoefficients[] =
{
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient B0MercuryCoefficients[] =
{
    {3426.007735, 1.983575, 26087.902344},
    {1545.340416, 5.037390, 52175.804688},
    {1105.820962, 3.141593, 0.000000},
    {737.056307,  1.796444, 78263.710938},
    {360.248525,  4.832325, 104351.609375},
    {178.513305,  1.580880, 130439.515625},
    {89.235643, 4.609700, 156527.421875},
    {44.877611, 1.353200, 182615.328125},
    {22.671568, 4.378000, 208703.218750},
    {14.456832, 2.020000, 24978.525391},
    {14.422205, 4.918000, 27197.281250},
    {11.489125, 1.119000, 234791.125000},
    {11.000000, 1.813000, 53285.183594},
    {10.000000, 5.657000, 20426.570312}
};

CONST VSOP87Coefficient B1MercuryCoefficients[] =
{
    {655.096176,  3.501698, 26087.902344},
    {382.405544,  3.141593, 0.000000},
    {150.582203,  0.015150, 52175.804688},
    {104.379117,  0.485400, 78263.710938},
    {79.705709, 3.429400, 104351.609375},
    {49.959984, 0.160500, 130439.515625},
    {29.325757, 3.185000, 156527.421875},
    {16.673332, 6.210000, 182615.328125},
    {9.273618,  2.950000, 208703.234375},
    {5.291503,  0.290000, 27197.279297},
    {5.099020,  5.980000, 234791.125000}
};

CONST VSOP87Coefficient B2MercuryCoefficients[] =
{
    {108.770400,  4.790660, 26087.902344},
    {43.749286, 0.000000, 0.000000},
    {32.326460, 1.212200, 52175.804688},
    {16.309506, 4.434000, 78263.710938},
    {13.038405, 1.623000, 104351.609375},
    {9.797959,  4.800000, 130439.523438},
    {6.708204,  1.610000, 156527.421875},
    {4.242641,  4.670000, 182615.312500},
    {2.645751,  1.430000, 208703.234375}
};

CONST VSOP87Coefficient B3MercuryCoefficients[] =
{
    {15.329710, 0.354000, 26087.902344},
    {12.688578, 0.000000, 0.000000},
    {4.358899,  4.360000, 52175.808594},
    {2.449490,  2.510000, 78263.710938},
    {2.236068,  6.140000, 104351.609375},
    {1.732051,  3.120000, 130439.523438},
    {1.414214,  6.270000, 156527.421875}
};

CONST VSOP87Coefficient B4MercuryCoefficients[] =
{
    {2.000000,  1.750000, 26087.900391},
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient R0MercuryCoefficients[] =
{
    {6287.151342, 0.000000, 0.000000},
    {2798.951947, 6.192337, 26087.902344},
    {891.922642,  2.959897, 52175.804688},
    {348.255653,  6.010642, 78263.710938},
    {148.060798,  2.778200, 104351.609375},
    {65.984847, 5.828900, 130439.515625},
    {30.298515, 2.597000, 156527.421875},
    {17.029386, 1.424000, 25028.521484},
    {16.124515, 3.028000, 27197.281250},
    {14.212670, 5.647000, 182615.328125},
    {14.177447, 5.592000, 31749.234375},
    {11.916375, 6.253000, 24978.525391},
    {10.000000, 3.734000, 21535.949219}
};

CONST VSOP87Coefficient R1MercuryCoefficients[] =
{
    {466.205963,  4.656172, 26087.902344},
    {210.099976,  1.423860, 52175.804688},
    {100.468901,  4.474660, 78263.710938},
    {49.325450, 1.242300, 104351.609375},
    {40.298883, 0.000000, 0.000000},
    {24.576411, 4.293000, 130439.515625},
    {12.369317, 1.061000, 156527.421875},
    {6.244998,  4.110000, 182615.312500}
};

CONST VSOP87Coefficient R2MercuryCoefficients[] =
{
    {55.839054, 3.082300, 26087.902344},
    {35.284558, 6.151800, 52175.804688},
    {20.615528, 2.926000, 78263.710938},
    {11.661904, 5.980000, 104351.609375},
    {6.480741,  2.750000, 130439.523438},
    {4.690416,  3.140000, 0.000000},
    {3.605551,  5.800000, 156527.421875}
};

CONST VSOP87Coefficient R3MercuryCoefficients[] =
{
    {5.744563,  1.680000, 26087.900391},
    {4.898979,  4.630000, 52175.808594},
    {3.464102,  1.390000, 78263.710938},
    {2.236068,  4.440000, 104351.609375},
    {1.414214,  1.210000, 130439.523438}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Venus.
//

CONST VSOP87Coefficient L0VenusCoefficients[] =
{
    {17821.747024,  0.000000, 0.000000},
    {1163.601306, 5.593133, 10213.285156},
    {299.819946,  5.306500, 20426.570312},
    {74.006756, 4.416300, 7860.419434},
    {58.787754, 2.699600, 11790.628906},
    {48.703183, 2.993800, 3930.209717},
    {40.792156, 4.250200, 1577.343506},
    {37.920970, 4.157500, 9683.594727},
    {36.290495, 5.186700, 26.298300},
    {34.655447, 6.153600, 30639.857422},
    {27.730849, 0.816000, 9437.762695},
    {27.586228, 1.950000, 529.690979},
    {26.608269, 1.065000, 775.523010},
    {24.186773, 3.998000, 191.447998},
    {22.360680, 4.123000, 15720.838867},
    {20.712315, 3.586000, 19367.189453},
    {18.083141, 5.677000, 5507.553223},
    {18.055470, 4.591000, 10404.734375},
    {15.231546, 3.163000, 9153.904297},
    {13.416408, 4.653000, 1109.379028},
    {12.449900, 5.570000, 19651.048828},
    {11.313708, 4.226000, 20.775000},
    {11.313708, 0.962000, 5661.332031},
    {10.295630, 1.537000, 801.820984}
};

CONST VSOP87Coefficient L1VenusCoefficients[] =
{
    {1010620.078493,  0.000000, 0.000000},
    {309.367096,  2.464240, 10213.285156},
    {120.187354,  0.516250, 20426.570312},
    {14.594520, 1.795000, 30639.857422},
    {13.190906, 2.655000, 26.298000},
    {12.328828, 6.106000, 1577.343994},
    {9.055385,  5.700000, 191.449997},
    {8.366600,  2.680000, 9437.759766},
    {7.211103,  3.600000, 775.520020},
    {6.164414,  1.030000, 529.690002},
    {5.477226,  1.250000, 5507.549805},
    {5.000000,  6.110000, 10404.730469}
};

CONST VSOP87Coefficient L2VenusCoefficients[] =
{
    {232.652101,  0.000000, 0.000000},
    {62.377881, 0.345100, 10213.285156},
    {36.578682, 2.020100, 20426.570312},
    {4.898979,  2.050000, 26.299999},
    {4.358899,  3.540000, 30639.859375},
    {3.162278,  3.970000, 775.520020},
    {2.645751,  1.520000, 1577.339966},
    {2.449490,  1.000000, 191.449997}
};

CONST VSOP87Coefficient L3VenusCoefficients[] =
{
    {11.661904, 4.804000, 10213.286133},
    {8.831761,  3.670000, 20426.570312},
    {5.099020,  0.000000, 0.000000}
};

CONST VSOP87Coefficient L4VenusCoefficients[] =
{
    {10.677078, 3.141600, 0.000000},
    {1.732051,  5.210000, 20426.570312},
    {1.414214,  2.510000, 10213.290039}
};

CONST VSOP87Coefficient L5VenusCoefficients[] =
{
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient B0VenusCoefficients[] =
{
    {2433.852502, 0.267028, 10213.285156},
    {200.269818,  1.147370, 20426.570312},
    {181.149110,  3.141590, 0.000000},
    {31.796226, 1.089500, 30639.857422},
    {12.206556, 6.254000, 18073.705078},
    {11.747340, 0.860000, 1577.343994},
    {11.401754, 3.672000, 9437.762695},
    {10.954451, 3.705000, 2352.865967},
    {10.392305, 4.539000, 22003.914062}
};

CONST VSOP87Coefficient B1VenusCoefficients[] =
{
    {716.483077,  1.803643, 10213.285156},
    {66.181568, 3.386200, 20426.570312},
    {14.106736, 0.000000, 0.000000},
    {14.035669, 2.530000, 30639.857422}
};

CONST VSOP87Coefficient B2VenusCoefficients[] =
{
    {149.592781,  3.385090, 10213.285156},
    {16.792856, 0.000000, 0.000000},
    {13.152946, 5.256000, 20426.570312},
    {5.196152,  3.870000, 30639.859375}
};

CONST VSOP87Coefficient B3VenusCoefficients[] =
{
    {25.436195, 4.992000, 10213.286133},
    {4.472136,  3.140000, 0.000000},
    {2.449490,  0.770000, 20426.570312},
    {1.732051,  5.440000, 30639.859375}
};

CONST VSOP87Coefficient B4VenusCoefficients[] =
{
    {3.741657,  0.320000, 10213.290039}
};


CONST VSOP87Coefficient R0VenusCoefficients[] =
{
    {8504.988007, 0.000000, 0.000000},
    {699.874274,  4.021518, 10213.285156},
    {40.718546, 4.902100, 20426.570312},
    {40.398020, 2.845500, 7860.419434},
    {37.121422, 1.128500, 11790.628906},
    {22.315914, 2.587000, 9683.594727},
    {19.339080, 1.423000, 3930.209961},
    {16.248077, 5.529000, 9437.762695},
    {15.394804, 2.551000, 15720.838867},
    {14.899664, 2.013000, 19367.189453},
    {11.224972, 2.728000, 1577.343994},
    {10.908712, 3.020000, 10404.734375}
};

CONST VSOP87Coefficient R1VenusCoefficients[] =
{
    {185.878993,  0.891990, 10213.285156},
    {15.297059, 1.772000, 20426.570312},
    {15.297059, 3.142000, 0.000000}
};

CONST VSOP87Coefficient R2VenusCoefficients[] =
{
    {37.509999, 5.063700, 10213.285156},
    {4.000000,  5.470000, 20426.570312},
    {3.605551,  0.000000, 0.000000}
};

CONST VSOP87Coefficient R3VenusCoefficients[] =
{
    {7.071068,  3.220000, 10213.290039}
};

CONST VSOP87Coefficient R4VenusCoefficients[] =
{
    {1.000000,  0.920000, 10213.290039}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Earth.
//

CONST VSOP87Coefficient L0EarthCoefficients[] =
{
    {13241.867164,  0.000000, 0.000000},
    {1828.019694, 4.669257, 6283.075684},
    {186.799358,  4.626100, 12566.151367},
    {59.135438, 2.744100, 5753.384766},
    {58.463664, 2.828900, 3.523100},
    {56.000000, 3.627700, 77713.773438},
    {51.730069, 4.418100, 7860.419434},
    {48.404545, 6.135200, 3930.209717},
    {36.386811, 0.742500, 11506.769531},
    {35.679126, 2.037100, 529.690979},
    {34.626579, 1.109600, 1577.343506},
    {31.464265, 5.233000, 5884.926758},
    {30.033315, 2.045000, 26.298000},
    {29.274562, 3.508000, 398.148987},
    {27.928480, 1.179000, 5223.693848},
    {27.440845, 2.533000, 5507.553223},
    {22.472205, 4.583000, 18849.228516},
    {22.181073, 4.205000, 775.523010},
    {18.894444, 2.920000, 0.067000},
    {17.804494, 5.849000, 11790.628906},
    {16.852300, 1.899000, 796.297974},
    {16.462078, 0.315000, 10977.079102},
    {15.588457, 0.345000, 5486.777832},
    {14.352700, 4.806000, 2544.313965},
    {14.317821, 1.869000, 5573.143066},
    {14.212670, 2.458000, 6069.776855},
    {12.489996, 0.833000, 213.298996},
    {11.489125, 3.411000, 2942.462891},
    {11.224972, 1.083000, 20.775000},
    {10.723805, 0.645000, 0.980000},
    {10.148892, 0.636000, 4694.002930},
    {10.099505, 0.976000, 15720.838867},
    {10.099505, 4.267000, 7.114000},
    {9.949874,  6.210000, 2146.169922},
    {9.899495,  0.680000, 155.419998},
    {9.273618,  5.980000, 161000.687500},
    {9.219544,  1.300000, 6275.959961},
    {9.219544,  3.670000, 71430.703125},
    {8.944272,  1.810000, 17260.150391},
    {8.888194,  3.040000, 12036.459961},
    {8.660254,  1.760000, 5088.629883},
    {8.602325,  3.500000, 3154.689941},
    {8.602325,  4.680000, 801.820007},
    {8.366600,  0.830000, 9437.759766},
    {7.874008,  3.980000, 8827.389648},
    {7.810250,  1.820000, 7084.899902},
    {7.549834,  2.780000, 6286.600098},
    {7.483315,  4.390000, 14143.500000},
    {7.483315,  3.470000, 6279.549805},
    {7.211103,  0.190000, 12139.549805},
    {7.211103,  1.330000, 1748.020020},
    {7.141428,  0.280000, 5856.479980},
    {7.000000,  0.490000, 1194.449951},
    {6.403124,  5.370000, 8429.240234},
    {6.403124,  2.400000, 19651.050781},
    {6.244998,  6.170000, 10447.389648},
    {6.082763,  6.040000, 10213.290039},
    {6.082763,  2.570000, 1059.380005},
    {6.000000,  1.710000, 2352.870117},
    {6.000000,  1.780000, 6812.770020},
    {5.744563,  0.590000, 17789.849609},
    {5.477226,  0.440000, 83996.851562},
    {5.477226,  2.740000, 1349.869995},
    {5.000000,  3.160000, 4690.479980}
};

CONST VSOP87Coefficient L1EarthCoefficients[] =
{
    {792673.934696, 0.000000, 0.000000},
    {453.937220,  2.678235, 6283.075684},
    {65.597256, 2.635100, 12566.151367},
    {20.615528, 1.590000, 3.523000},
    {10.908712, 5.796000, 26.298000},
    {10.440307, 2.966000, 1577.343994},
    {9.643651,  2.590000, 18849.230469},
    {8.485281,  1.140000, 529.690002},
    {8.246211,  1.870000, 398.149994},
    {8.185353,  4.410000, 5507.549805},
    {7.681146,  2.890000, 5223.689941},
    {7.483315,  2.170000, 155.419998},
    {6.708204,  0.400000, 796.299988},
    {6.000000,  0.470000, 775.520020},
    {5.385165,  2.650000, 7.110000},
    {4.582576,  5.340000, 0.980000},
    {4.358899,  1.850000, 5486.779785},
    {4.358899,  4.970000, 213.300003},
    {4.123106,  2.990000, 6275.959961},
    {4.000000,  0.030000, 2544.310059},
    {4.000000,  1.430000, 2146.169922},
    {3.872983,  1.210000, 10977.080078},
    {3.464102,  2.830000, 1748.020020},
    {3.464102,  3.260000, 5088.629883},
    {3.464102,  5.270000, 1194.449951},
    {3.464102,  2.080000, 4694.000000},
    {3.316625,  0.770000, 553.570007},
    {3.162278,  1.300000, 6286.600098},
    {3.162278,  4.240000, 1349.869995},
    {3.000000,  2.700000, 242.729996},
    {3.000000,  5.640000, 951.719971},
    {2.828427,  5.300000, 2352.870117},
    {2.449490,  2.650000, 9437.759766},
    {2.449490,  4.670000, 4690.479980}
};

CONST VSOP87Coefficient L2EarthCoefficients[] =
{
    {230.041301,  0.000000, 0.000000},
    {93.380940, 1.072100, 6283.075684},
    {17.578396, 0.867000, 12566.152344},
    {5.196152,  0.050000, 3.520000},
    {4.000000,  5.190000, 26.299999},
    {4.000000,  3.680000, 155.419998},
    {3.162278,  0.760000, 18849.230469},
    {3.000000,  2.060000, 77713.773438},
    {2.645751,  0.830000, 775.520020},
    {2.236068,  4.660000, 1577.339966},
    {2.000000,  1.030000, 7.110000},
    {2.000000,  3.440000, 5573.140137},
    {1.732051,  5.140000, 796.299988},
    {1.732051,  6.050000, 5507.549805},
    {1.732051,  1.190000, 242.729996},
    {1.732051,  6.120000, 529.690002},
    {1.732051,  0.310000, 398.149994},
    {1.732051,  2.280000, 553.570007},
    {1.414214,  4.380000, 5223.689941},
    {1.414214,  3.750000, 0.980000}
};

CONST VSOP87Coefficient L3EarthCoefficients[] =
{
    {17.000000, 5.844000, 6283.076172},
    {5.916080,  0.000000, 0.000000},
    {4.123106,  5.490000, 12566.150391},
    {1.732051,  5.200000, 155.419998},
    {1.000000,  4.720000, 3.520000},
    {1.000000,  5.300000, 18849.230469},
    {1.000000,  5.970000, 242.729996}
};

CONST VSOP87Coefficient L4EarthCoefficients[] =
{
    {10.677078, 3.142000, 0.000000},
    {2.828427,  4.130000, 6283.080078},
    {1.000000,  3.840000, 12566.150391}
};

CONST VSOP87Coefficient L5EarthCoefficients[] =
{
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient B0EarthCoefficients[] =
{
    {16.733201, 3.199000, 84334.664062},
    {10.099505, 5.422000, 5507.553223},
    {8.944272,  3.880000, 5223.689941},
    {6.633250,  3.700000, 2352.870117},
    {5.656854,  4.000000, 1577.339966}
};

CONST VSOP87Coefficient B1EarthCoefficients[] =
{
    {3.000000,  3.900000, 5507.549805},
    {2.449490,  1.730000, 5223.689941}
};


CONST VSOP87Coefficient R0EarthCoefficients[] =
{
    {10000.699426,  0.000000, 0.000000},
    {1292.555608, 3.098464, 6283.075684},
    {118.135515,  3.055250, 12566.151367},
    {55.533774, 5.198500, 77713.773438},
    {40.348482, 1.173900, 5753.384766},
    {39.698866, 2.846900, 7860.419434},
    {30.413813, 5.453000, 11506.769531},
    {23.280893, 4.564000, 3930.209961},
    {21.725561, 3.661000, 5884.926758},
    {18.601075, 0.964000, 5507.553223},
    {18.138357, 5.900000, 5223.693848},
    {17.521415, 0.299000, 5573.143066},
    {15.588457, 4.273000, 11790.628906},
    {14.560220, 5.847000, 1577.343994},
    {13.638182, 5.022000, 10977.079102},
    {13.228757, 3.012000, 18849.228516},
    {10.488088, 5.055000, 5486.777832},
    {9.899495,  0.890000, 6069.779785},
    {9.273618,  5.690000, 15720.839844},
    {9.273618,  1.270000, 161000.687500},
    {8.062258,  0.270000, 17260.150391},
    {7.937254,  0.920000, 529.690002},
    {7.549834,  2.010000, 83996.851562},
    {7.483315,  5.240000, 71430.703125},
    {7.000000,  3.250000, 2544.310059},
    {6.855655,  2.580000, 775.520020},
    {6.708204,  5.540000, 9437.759766},
    {6.557439,  6.010000, 6275.959961},
    {6.244998,  5.360000, 4694.000000},
    {6.164414,  2.390000, 8827.389648},
    {6.082763,  0.830000, 19651.050781},
    {6.082763,  4.900000, 12139.549805},
    {6.000000,  1.670000, 12036.459961},
    {5.916080,  1.840000, 2942.459961},
    {5.744563,  0.240000, 7084.899902},
    {5.656854,  0.180000, 5088.629883},
    {5.656854,  1.780000, 398.149994},
    {5.291503,  1.210000, 6286.600098},
    {5.291503,  1.900000, 6279.549805},
    {5.099020,  4.590000, 10447.389648}
};

CONST VSOP87Coefficient R1EarthCoefficients[] =
{
    {320.965730,  1.107490, 6283.075684},
    {41.484937, 1.064400, 12566.151367},
    {26.495283, 3.142000, 0.000000},
    {5.656854,  1.020000, 18849.230469},
    {5.567764,  2.840000, 5507.549805},
    {5.000000,  1.320000, 5223.689941},
    {4.242641,  1.420000, 1577.339966},
    {3.162278,  5.910000, 10977.080078},
    {3.000000,  1.420000, 6275.959961},
    {3.000000,  0.270000, 5486.779785}
};

CONST VSOP87Coefficient R2EarthCoefficients[] =
{
    {66.022723, 5.784600, 6283.075684},
    {11.135529, 5.579000, 12566.152344},
    {3.464102,  3.140000, 0.000000},
    {3.000000,  3.630000, 77713.773438},
    {2.449490,  1.870000, 5573.140137},
    {1.732051,  5.470000, 18849.230469}
};

CONST VSOP87Coefficient R3EarthCoefficients[] =
{
    {12.041595, 4.273000, 6283.076172},
    {2.645751,  3.920000, 12566.150391}
};

////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Mars.
//

CONST VSOP87Coefficient L0MarsCoefficients[] =
{
    {24906.780442,  0.000000, 0.000000},
    {4319.301795, 5.050371, 3340.612305},
    {1052.718861, 5.400999, 6681.224609},
    {302.981848,  5.754790, 10021.836914},
    {166.568304,  5.970500, 3.523120},
    {110.977475,  0.849560, 2810.921387},
    {103.004854,  2.939590, 2281.230469},
    {94.482803, 4.157000, 0.017300},
    {93.359520, 6.110100, 13362.449219},
    {88.175960, 3.339700, 5621.842773},
    {82.449985, 0.364600, 398.148987},
    {64.505814, 0.228100, 2942.463379},
    {59.791304, 1.661900, 2544.314453},
    {55.452683, 0.857000, 191.448303},
    {54.203321, 6.078900, 0.067300},
    {51.264022, 0.648100, 3337.089355},
    {50.793700, 0.030000, 3344.135498},
    {48.877398, 5.039000, 796.297974},
    {42.414620, 0.656300, 529.690979},
    {39.319207, 2.915800, 1751.539551},
    {39.089641, 1.149800, 6151.533691},
    {35.860842, 3.068000, 2146.165283},
    {35.552778, 3.622800, 5092.151855},
    {32.015621, 3.693300, 8962.455078},
    {29.866369, 0.183000, 16703.062500},
    {29.308702, 2.401000, 2914.013916},
    {28.861739, 4.495000, 3340.629883},
    {28.861739, 2.464000, 3340.594971},
    {27.367864, 3.822000, 155.419998},
    {26.907248, 0.675000, 3738.760986},
    {26.702060, 3.663000, 1059.381958},
    {25.592968, 0.489000, 3127.312988},
    {25.219040, 2.922000, 8432.763672},
    {23.515952, 4.475000, 1748.015991},
    {23.452079, 3.810000, 0.980000},
    {21.725561, 3.625000, 1194.447021},
    {20.639767, 0.554000, 6283.076172},
    {20.371549, 0.497000, 213.298996},
    {17.663522, 0.999000, 6677.702148},
    {17.521415, 0.381000, 6684.748047},
    {17.378147, 4.486000, 3532.061035},
    {17.291616, 2.783000, 6254.626953},
    {17.117243, 4.221000, 20.775000},
    {16.852300, 5.769000, 3149.164062},
    {16.763055, 5.882000, 1349.866943},
    {16.552945, 0.542000, 3340.544922},
    {16.552945, 0.134000, 3340.679932},
    {15.459625, 5.372000, 4136.910156},
    {15.362291, 5.755000, 3333.499023},
    {15.198684, 1.282000, 3870.302979},
    {14.866069, 3.505000, 382.897003},
    {14.282857, 2.821000, 1221.848999},
    {13.892444, 3.357000, 3.590000},
    {13.747727, 1.491000, 9492.146484},
    {13.379088, 1.006000, 951.718018},
    {13.190906, 2.414000, 553.568970},
    {13.114877, 0.439000, 5486.777832},
    {12.649111, 3.949000, 4562.460938},
    {12.000000, 1.419000, 135.065002},
    {11.832160, 3.326000, 2700.715088},
    {11.747340, 4.301000, 7.114000},
    {11.445523, 4.045000, 12303.068359},
    {11.313708, 2.208000, 1592.595947},
    {11.313708, 1.807000, 5088.628906},
    {10.816654, 3.128000, 7903.073242},
    {10.630146, 3.701000, 1589.072998},
    {10.488088, 1.052000, 242.729004},
    {10.246951, 0.785000, 8827.389648},
    {10.000000, 3.243000, 11773.376953}
};

CONST VSOP87Coefficient L1MarsCoefficients[] =
{
    {578001.407848, 0.000000, 0.000000},
    {1207.570702, 3.604260, 3340.612305},
    {406.080041,  3.926313, 6681.224609},
    {141.290481,  4.265940, 10021.836914},
    {58.753723, 4.732100, 3.523100},
    {49.849774, 4.612800, 13362.449219},
    {29.017236, 4.459000, 2281.229980},
    {23.194827, 5.016000, 398.148987},
    {22.825424, 4.994000, 3344.135986},
    {20.808652, 2.561000, 191.447998},
    {20.736441, 5.316000, 155.419998},
    {19.544820, 3.539000, 796.297974},
    {17.720045, 4.963000, 16703.062500},
    {16.822604, 3.160000, 2544.313965},
    {14.352700, 4.569000, 2146.165039},
    {13.000000, 1.329000, 3337.089111},
    {12.569805, 4.185000, 1751.540039},
    {11.575837, 2.233000, 0.980000},
    {11.575837, 5.974000, 1748.015991},
    {10.862780, 6.024000, 6151.534180},
    {10.816654, 2.213000, 1059.381958},
    {10.677078, 2.129000, 1194.447021},
    {10.677078, 5.428000, 3738.760986},
    {9.539392,  1.100000, 1349.869995},
    {9.219544,  3.910000, 553.570007},
    {9.110434,  5.300000, 6684.750000},
    {9.000000,  4.430000, 529.690002},
    {8.944272,  2.250000, 8962.459961},
    {8.544004,  2.500000, 951.719971},
    {8.544004,  5.840000, 242.729996},
    {8.426150,  3.860000, 2914.010010},
    {8.246211,  5.020000, 382.899994},
    {8.062258,  1.020000, 3340.600098},
    {8.062258,  3.050000, 3340.629883},
    {7.874008,  4.150000, 3149.159912},
    {7.549834,  3.890000, 4136.910156},
    {6.928203,  4.870000, 213.300003},
    {6.928203,  1.180000, 3333.500000},
    {6.855655,  1.310000, 3185.189941},
    {6.403124,  0.710000, 1592.599976},
    {6.324555,  2.730000, 7.110000},
    {6.324555,  5.320000, 20043.669922},
    {5.744563,  5.410000, 6283.080078},
    {5.291503,  0.050000, 9492.150391},
    {5.196152,  3.890000, 1221.849976},
    {5.196152,  5.110000, 2700.719971}
};

CONST VSOP87Coefficient L2MarsCoefficients[] =
{
    {240.865107,  2.049790, 3340.612549},
    {232.783161,  0.000000, 0.000000},
    {117.932184,  2.457420, 6681.224609},
    {49.648766, 2.800000, 10021.836914},
    {19.949937, 3.141000, 13362.450195},
    {14.899664, 3.194000, 3.523000},
    {11.000000, 0.543000, 155.419998},
    {7.874008,  3.490000, 16703.060547},
    {7.348469,  3.540000, 3344.139893},
    {5.830952,  6.000000, 2281.229980},
    {5.656854,  4.140000, 191.449997},
    {5.477226,  2.000000, 796.299988},
    {4.795832,  4.330000, 242.729996},
    {4.690416,  3.450000, 398.149994},
    {4.472136,  5.420000, 553.570007},
    {4.000000,  0.660000, 0.980000},
    {4.000000,  6.110000, 2146.169922},
    {4.000000,  1.220000, 1748.020020},
    {3.872983,  6.100000, 3185.189941},
    {3.741657,  4.020000, 951.719971},
    {3.741657,  2.620000, 1349.869995},
    {3.605551,  0.600000, 1194.449951},
    {3.464102,  3.860000, 6684.750000},
    {3.316625,  4.720000, 2544.310059},
    {3.162278,  0.250000, 382.899994},
    {3.000000,  0.680000, 1059.380005},
    {3.000000,  3.830000, 20043.669922},
    {3.000000,  3.880000, 3738.760010},
    {2.828427,  5.460000, 1751.540039},
    {2.645751,  2.580000, 3149.159912},
    {2.645751,  2.380000, 4136.910156},
    {2.449490,  5.480000, 1592.599976},
    {2.449490,  2.340000, 3097.879883}
};

CONST VSOP87Coefficient L3MarsCoefficients[] =
{
    {38.496753, 0.444300, 3340.612305},
    {25.729361, 0.885000, 6681.225098},
    {13.711309, 1.288000, 10021.836914},
    {6.403124,  1.650000, 13362.450195},
    {5.099020,  0.000000, 0.000000},
    {4.795832,  2.050000, 155.419998},
    {3.162278,  1.580000, 3.520000},
    {2.828427,  2.000000, 16703.060547},
    {2.236068,  2.820000, 242.729996},
    {2.000000,  2.020000, 3344.139893},
    {1.732051,  4.590000, 3185.189941},
    {1.732051,  0.650000, 553.570007}
};

CONST VSOP87Coefficient L4MarsCoefficients[] =
{
    {10.677078, 3.141600, 0.000000},
    {5.385165,  5.640000, 6681.220215},
    {4.898979,  5.140000, 3340.610107},
    {3.316625,  6.030000, 10021.839844},
    {1.732051,  0.130000, 13362.450195},
    {1.732051,  3.560000, 155.419998},
    {1.000000,  0.490000, 16703.060547},
    {1.000000,  1.320000, 242.729996}
};

CONST VSOP87Coefficient L5MarsCoefficients[] =
{
    {1.000000,  3.140000, 0.000000},
    {1.000000,  4.040000, 6681.220215}
};


CONST VSOP87Coefficient B0MarsCoefficients[] =
{
    {1788.053411, 3.768320, 3340.612305},
    {545.923987,  4.106170, 6681.224609},
    {537.684852,  0.000000, 0.000000},
    {177.104489,  4.446510, 10021.836914},
    {59.025418, 4.788100, 13362.449219},
    {21.047565, 5.026000, 3344.135986},
    {21.047565, 5.652000, 3337.089111},
    {19.974984, 5.131000, 16703.062500},
    {17.117243, 3.793000, 2281.229980},
    {13.490738, 6.136000, 6151.534180},
    {12.767145, 4.264000, 529.690979},
    {12.649111, 2.232000, 1059.381958},
    {12.206556, 2.165000, 5621.842773},
    {11.958261, 1.182000, 3340.594971},
    {11.958261, 3.213000, 3340.629883},
    {11.789826, 2.418000, 8962.455078}
};

CONST VSOP87Coefficient B1MarsCoefficients[] =
{
    {591.666291,  5.368478, 3340.612549},
    {118.810774,  3.141590, 0.000000},
    {98.341243, 5.478800, 6681.225098},
    {38.366652, 3.202100, 10021.836914},
    {20.639767, 3.408000, 13362.450195},
    {10.099505, 0.776000, 3337.089111},
    {8.888194,  3.720000, 16703.060547},
    {5.744563,  3.460000, 5621.839844},
    {5.099020,  2.480000, 2281.229980}
};

CONST VSOP87Coefficient B2MarsCoefficients[] =
{
    {129.332904,  0.602210, 3340.612549},
    {70.618694, 3.141600, 0.000000},
    {17.378147, 5.559000, 6681.225098},
    {5.099020,  1.900000, 13362.450195},
    {4.582576,  0.920000, 10021.839844},
    {3.464102,  2.240000, 3337.090088},
    {2.828427,  2.250000, 16703.060547}
};

CONST VSOP87Coefficient B3MarsCoefficients[] =
{
    {24.637370, 1.981000, 3340.612061},
    {6.557439,  0.000000, 0.000000},
    {3.741657,  1.800000, 6681.220215},
    {1.732051,  3.450000, 10021.839844}
};

CONST VSOP87Coefficient B4MarsCoefficients[] =
{
    {3.605551,  0.000000, 0.000000},
    {3.316625,  3.460000, 3340.610107},
    {1.000000,  0.500000, 6681.220215}
};


CONST VSOP87Coefficient R0MarsCoefficients[] =
{
    {12370.670475,  0.000000, 0.000000},
    {3766.291677, 3.479713, 3340.612305},
    {812.881295,  3.817834, 6681.224609},
    {214.892997,  4.155950, 10021.836914},
    {90.055538, 5.559600, 2810.921387},
    {86.515894, 1.772400, 5621.842773},
    {74.316889, 1.364400, 2281.230469},
    {61.846584, 4.494100, 13362.449219},
    {49.839743, 4.925500, 2942.463379},
    {48.031240, 0.090800, 2544.314453},
    {44.710178, 5.360600, 3337.089355},
    {44.271887, 4.742500, 3344.135498},
    {34.161382, 2.112600, 5092.151855},
    {33.211444, 5.009100, 398.148987},
    {31.496031, 5.839000, 6151.534180},
    {29.983329, 4.408000, 529.690979},
    {28.407745, 2.102000, 1059.381958},
    {28.248894, 3.448000, 796.297974},
    {27.221315, 1.499000, 2146.165039},
    {26.944387, 1.245000, 8432.763672},
    {26.305893, 2.134000, 8962.455078},
    {25.159491, 0.894000, 3340.594971},
    {25.159491, 2.924000, 3340.629883},
    {25.099801, 1.287000, 1751.540039},
    {23.958297, 0.829000, 2914.013916},
    {22.934690, 5.383000, 3738.760986},
    {21.748563, 5.199000, 3127.312988},
    {18.654758, 4.832000, 16703.062500},
    {16.852300, 2.907000, 3532.061035},
    {16.733201, 5.257000, 6283.076172},
    {16.613248, 1.218000, 6254.626953},
    {16.583124, 2.908000, 1748.015991},
    {16.431677, 3.764000, 5884.926758},
    {15.459625, 2.037000, 1194.447021},
    {15.297059, 5.105000, 5486.777832},
    {15.099669, 3.255000, 6872.672852},
    {14.933185, 4.199000, 3149.164062},
    {14.798649, 5.583000, 191.447998},
    {14.422205, 5.255000, 3340.544922},
    {14.422205, 4.846000, 3340.679932},
    {13.638182, 5.699000, 6677.702148},
    {13.527749, 5.081000, 6684.748047},
    {13.379088, 4.184000, 3333.499023},
    {13.266499, 5.953000, 3870.302979},
    {12.806248, 3.799000, 4136.910156}
};

CONST VSOP87Coefficient R1MarsCoefficients[] =
{
    {1052.346426, 2.032505, 3340.612305},
    {321.210212,  2.370718, 6681.224609},
    {113.476870,  0.000000, 0.000000},
    {104.000000,  2.708880, 10021.836914},
    {34.568772, 3.047000, 13362.449219},
    {20.952327, 2.888000, 2281.229980},
    {19.899749, 3.423000, 3344.135986},
    {13.527749, 1.584000, 2544.313965},
    {11.661904, 3.385000, 16703.062500},
    {11.313708, 6.043000, 3337.089111},
    {11.313708, 0.630000, 1059.381958},
    {11.269428, 1.954000, 796.297974},
    {10.862780, 2.998000, 2146.165039},
    {9.380832,  3.420000, 398.149994},
    {9.110434,  3.860000, 3738.760010},
    {8.717798,  4.450000, 6151.529785},
    {8.485281,  2.760000, 529.690002},
    {8.185353,  2.550000, 1751.540039},
    {8.124038,  4.410000, 1748.020020},
    {7.615773,  0.540000, 1194.449951},
    {7.348469,  0.680000, 8962.459961},
    {7.141428,  3.730000, 6684.750000},
    {7.000000,  5.730000, 3340.600098},
    {7.000000,  1.480000, 3340.629883},
    {6.928203,  2.580000, 3149.159912},
    {6.928203,  2.290000, 2914.010010},
    {6.244998,  2.320000, 4136.910156}
};

CONST VSOP87Coefficient R2MarsCoefficients[] =
{
    {210.337824,  0.479310, 3340.612549},
    {90.210864, 0.870000, 6681.225098},
    {35.707142, 1.225900, 10021.836914},
    {13.674794, 1.573000, 13362.450195},
    {7.211103,  3.140000, 0.000000},
    {6.403124,  1.970000, 3344.139893},
    {5.196152,  1.920000, 16703.060547},
    {4.242641,  4.430000, 2281.229980},
    {3.464102,  4.530000, 3185.189941},
    {3.162278,  5.390000, 1059.380005},
    {3.162278,  0.420000, 796.299988}
};

CONST VSOP87Coefficient R3MarsCoefficients[] =
{
    {33.361655, 5.149900, 3340.612305},
    {20.591260, 5.613000, 6681.225098},
    {10.000000, 5.997000, 10021.836914},
    {4.472136,  0.080000, 13362.450195},
    {2.236068,  3.140000, 0.000000},
    {1.732051,  0.430000, 16703.060547}
};

CONST VSOP87Coefficient R4MarsCoefficients[] =
{
    {4.472136,  3.580000, 3340.610107},
    {4.000000,  4.050000, 6681.220215},
    {2.449490,  4.460000, 10021.839844},
    {1.414214,  4.840000, 13362.450195}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Jupiter.
//

CONST VSOP87Coefficient L0JupiterCoefficients[] =
{
    {7743.041457, 0.000000, 0.000000},
    {3113.823855, 5.061918, 529.690979},
    {757.370451,  1.444062, 7.113547},
    {553.524164,  5.417347, 1059.381958},
    {311.733861,  4.142650, 632.783752},
    {270.005555,  3.640430, 522.577393},
    {253.503452,  3.411450, 103.092773},
    {199.514411,  2.293770, 419.484650},
    {197.124326,  1.272320, 316.391876},
    {167.227390,  1.784550, 536.804504},
    {116.576155,  5.774810, 1589.072876},
    {93.642939, 3.630000, 949.175598},
    {90.807489, 3.582300, 206.185501},
    {85.837055, 5.081000, 735.876526},
    {79.139118, 0.025000, 213.299103},
    {78.192071, 4.513200, 1162.474731},
    {72.835431, 4.186300, 1052.268433},
    {72.835431, 1.306700, 14.227100},
    {70.035705, 1.320800, 110.206299},
    {68.168908, 4.699600, 3.932200},
    {55.181519, 4.316800, 426.598206},
    {51.088159, 1.566700, 846.082825},
    {45.033321, 1.063800, 3.181400},
    {43.829214, 0.971700, 639.897278},
    {42.011903, 2.141500, 1066.495483},
    {41.509035, 3.880400, 1265.567505},
    {40.410395, 3.582000, 515.463928},
    {37.841776, 4.296800, 625.670227},
    {31.192948, 4.098000, 95.978996},
    {29.732137, 2.437000, 412.371002},
    {27.073973, 6.085000, 838.968994},
    {27.037012, 3.806000, 1581.958984},
    {26.627054, 1.293000, 742.989990},
    {26.305893, 6.134000, 2118.763916},
    {24.779023, 4.109000, 1478.866943},
    {24.124676, 4.540000, 309.278015},
    {22.248595, 3.756000, 323.505005},
    {21.000000, 2.958000, 454.908997},
    {20.420578, 1.036000, 2.448000},
    {19.748418, 4.897000, 1692.166016},
    {19.390719, 4.703000, 1368.660034},
    {18.466185, 5.715000, 533.622986},
    {18.165902, 4.740000, 0.048000},
    {16.186414, 1.877000, 0.963000},
    {16.155494, 0.820000, 380.127991},
    {16.031220, 3.724000, 199.072006},
    {15.620499, 5.220000, 728.763000},
    {15.329710, 1.227000, 909.818970},
    {14.832397, 1.651000, 543.918030},
    {14.387495, 1.855000, 525.758972},
    {14.212670, 1.807000, 1375.774048},
    {14.035669, 5.293000, 1155.360962},
    {13.228757, 3.730000, 942.062012},
    {13.228757, 3.226000, 1898.350952},
    {13.228757, 5.910000, 956.289001},
    {12.569805, 4.365000, 1795.258057},
    {12.288206, 3.906000, 74.781998},
    {12.206556, 4.377000, 1685.052002},
    {11.874342, 3.136000, 491.558014},
    {11.747340, 1.318000, 1169.588013},
    {11.445523, 4.169000, 1045.155029},
    {10.816654, 2.500000, 1596.186035},
    {10.816654, 3.389000, 0.521000},
    {10.295630, 4.554000, 526.510010}
};

CONST VSOP87Coefficient L1JupiterCoefficients[] =
{
    {230203.129338, 0.000000, 0.000000},
    {699.814976,  4.220667, 529.690979},
    {478.454805,  6.026475, 7.113547},
    {166.297925,  4.572660, 1059.381958},
    {143.947907,  5.459390, 522.577393},
    {110.027269,  0.169860, 536.804504},
    {77.897368, 4.424200, 103.092796},
    {73.715670, 3.984800, 419.484589},
    {65.099923, 5.890100, 14.227100},
    {47.031904, 5.267700, 206.185501},
    {41.785165, 4.926700, 1589.072876},
    {36.000000, 5.551300, 3.181400},
    {34.249088, 5.856500, 1052.268433},
    {34.102786, 0.514500, 3.932200},
    {33.151169, 5.307000, 515.463928},
    {31.733263, 0.464800, 735.876526},
    {31.685959, 3.150400, 426.598206},
    {29.120440, 5.758000, 110.206001},
    {28.757608, 4.803000, 213.298996},
    {28.565714, 0.586000, 1066.494995},
    {26.925824, 5.518000, 639.896973},
    {23.832751, 5.989000, 625.669983},
    {21.771541, 4.132000, 412.371002},
    {20.322401, 5.737000, 95.978996},
    {18.574176, 4.242000, 632.783997},
    {18.330303, 3.732000, 1162.474976},
    {15.297059, 4.035000, 949.176025},
    {15.297059, 6.243000, 309.278015},
    {14.106736, 1.505000, 838.968994},
    {13.964240, 2.219000, 323.505005},
    {13.674794, 6.086000, 742.989990},
    {13.564660, 6.280000, 543.918030},
    {13.076697, 5.417000, 199.072006},
    {11.445523, 0.626000, 728.763000},
    {10.723805, 0.680000, 846.083008},
    {10.723805, 5.286000, 2118.763916},
    {10.392305, 4.493000, 956.289001},
    {8.944272,  5.820000, 1045.150024},
    {8.485281,  5.340000, 942.059998},
    {8.366600,  5.970000, 532.869995},
    {8.185353,  5.730000, 21.340000},
    {8.124038,  0.130000, 526.510010},
    {8.062258,  6.090000, 1581.959961},
    {7.681146,  0.590000, 1155.359985},
    {7.615773,  0.990000, 1596.189941},
    {7.549834,  5.970000, 1169.589966},
    {7.549834,  1.410000, 533.619995},
    {7.416198,  5.430000, 10.290000},
    {7.211103,  5.730000, 117.320000},
    {7.211103,  0.230000, 1368.660034},
    {7.071068,  6.080000, 525.760010},
    {6.855655,  3.630000, 1478.869995},
    {6.855655,  0.510000, 1265.569946},
    {6.324555,  4.160000, 1692.170044},
    {5.830952,  0.100000, 302.160004},
    {5.744563,  5.040000, 220.410004},
    {5.656854,  5.370000, 508.350006},
    {5.385165,  5.420000, 1272.680054},
    {5.385165,  3.360000, 4.670000},
    {5.385165,  0.760000, 88.870003},
    {5.000000,  1.610000, 831.859985}
};

CONST VSOP87Coefficient L2JupiterCoefficients[] =
{
    {217.333845,  4.321480, 7.113550},
    {197.398075,  0.000000, 0.000000},
    {175.011428,  2.930210, 529.690979},
    {56.471232, 1.055000, 522.577393},
    {52.239832, 4.845500, 536.804504},
    {52.182373, 3.414100, 1059.381958},
    {41.484937, 4.187300, 14.227100},
    {19.570386, 5.768000, 419.484985},
    {19.442222, 0.760000, 515.463989},
    {19.157244, 6.055000, 103.093002},
    {18.357560, 3.786000, 3.181000},
    {17.549929, 0.694000, 206.186005},
    {14.764823, 3.814000, 1589.072998},
    {14.106736, 5.340000, 1066.494995},
    {14.035669, 2.484000, 3.932000},
    {12.489996, 1.406000, 1052.267944},
    {12.083046, 3.814000, 639.896973},
    {11.916375, 1.634000, 426.597992},
    {11.401754, 5.837000, 412.371002},
    {10.816654, 1.414000, 625.669983},
    {9.848858,  4.030000, 110.209999},
    {9.539392,  1.110000, 95.980003},
    {9.327379,  2.520000, 632.780029},
    {8.888194,  4.640000, 543.919983},
    {8.485281,  2.220000, 735.880005},
    {7.615773,  0.830000, 199.070007},
    {7.549834,  3.120000, 213.300003},
    {7.000000,  1.670000, 309.279999},
    {6.324555,  4.020000, 21.340000},
    {6.324555,  0.620000, 323.510010},
    {6.000000,  2.330000, 728.760010},
    {5.385165,  3.610000, 10.290000},
    {5.291503,  3.240000, 838.969971},
    {5.099020,  4.500000, 742.989990},
    {5.099020,  2.510000, 1162.469971},
    {5.000000,  1.220000, 1045.150024},
    {4.898979,  3.010000, 956.289978},
    {4.358899,  4.290000, 532.869995},
    {4.242641,  0.810000, 508.350006},
    {4.123106,  4.200000, 2118.760010},
    {4.123106,  1.830000, 526.510010},
    {3.872983,  5.810000, 1596.189941},
    {3.872983,  0.680000, 942.059998},
    {3.872983,  4.000000, 117.320000},
    {3.741657,  5.950000, 316.390015},
    {3.741657,  1.800000, 302.160004},
    {3.605551,  2.520000, 88.870003},
    {3.605551,  4.370000, 1169.589966},
    {3.316625,  4.440000, 525.760010},
    {3.162278,  1.720000, 1581.959961},
    {3.000000,  2.180000, 1155.359985},
    {3.000000,  3.290000, 220.410004},
    {3.000000,  3.320000, 831.859985},
    {2.828427,  5.760000, 846.080017},
    {2.828427,  2.710000, 533.619995},
    {2.645751,  2.180000, 1265.569946},
    {2.449490,  0.500000, 949.179993}
};

CONST VSOP87Coefficient L3JupiterCoefficients[] =
{
    {80.634980, 2.598600, 7.113500},
    {36.837481, 1.346400, 529.690979},
    {21.702534, 2.475000, 14.227000},
    {20.420578, 3.245000, 536.804993},
    {18.788294, 2.974000, 522.577026},
    {12.449900, 2.076000, 1059.381958},
    {9.327379,  2.510000, 515.460022},
    {6.633250,  0.000000, 0.000000},
    {5.830952,  3.830000, 1066.500000},
    {5.291503,  2.450000, 206.190002},
    {4.898979,  1.280000, 412.369995},
    {4.795832,  2.980000, 543.919983},
    {4.472136,  2.100000, 639.900024},
    {4.472136,  1.400000, 419.480011},
    {4.358899,  1.590000, 103.089996},
    {4.123106,  2.300000, 21.340000},
    {4.123106,  2.600000, 1589.069946},
    {4.000000,  3.150000, 625.669983},
    {4.000000,  3.360000, 1052.270020},
    {3.605551,  2.760000, 95.980003},
    {3.605551,  2.540000, 199.070007},
    {3.605551,  6.270000, 426.600006},
    {3.000000,  1.760000, 10.290000},
    {3.000000,  2.270000, 110.209999},
    {2.645751,  3.430000, 309.279999},
    {2.645751,  4.040000, 728.760010},
    {2.449490,  2.520000, 508.350006},
    {2.236068,  2.910000, 1045.150024},
    {2.236068,  5.250000, 323.510010},
    {2.000000,  4.300000, 88.870003},
    {2.000000,  3.520000, 302.160004},
    {2.000000,  4.090000, 735.880005},
    {1.732051,  1.430000, 956.289978},
    {1.732051,  4.360000, 1596.189941},
    {1.732051,  1.250000, 213.300003},
    {1.732051,  5.020000, 838.969971},
    {1.732051,  2.240000, 117.320000},
    {1.414214,  2.900000, 742.989990},
    {1.414214,  2.360000, 942.059998}
};

CONST VSOP87Coefficient L4JupiterCoefficients[] =
{
    {25.865034, 0.853000, 7.114000},
    {10.677078, 3.142000, 0.000000},
    {10.000000, 0.743000, 14.227000},
    {7.071068,  1.650000, 536.799988},
    {6.633250,  5.820000, 529.690002},
    {5.656854,  4.860000, 522.580017},
    {3.872983,  4.290000, 515.460022},
    {3.000000,  0.710000, 1059.380005},
    {2.236068,  1.300000, 543.919983},
    {2.000000,  2.320000, 1066.500000},
    {2.000000,  0.480000, 21.340000},
    {1.732051,  3.000000, 412.369995},
    {1.414214,  0.400000, 639.900024},
    {1.414214,  4.260000, 199.070007},
    {1.414214,  4.910000, 625.669983},
    {1.414214,  4.260000, 206.190002},
    {1.000000,  5.260000, 1052.270020},
    {1.000000,  4.720000, 95.980003},
    {1.000000,  1.290000, 1589.069946}
};

CONST VSOP87Coefficient L5JupiterCoefficients[] =
{
    {7.071068,  5.260000, 7.110000},
    {4.000000,  5.250000, 14.230000},
    {2.000000,  0.010000, 536.799988},
    {1.414214,  1.100000, 522.580017},
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient B0JupiterCoefficients[] =
{
    {1506.192551, 3.558526, 529.690979},
    {331.798131,  0.000000, 0.000000},
    {331.620265,  3.908093, 1059.381958},
    {90.005555, 3.605100, 522.577393},
    {80.237149, 0.306300, 536.804504},
    {77.743167, 4.258800, 1589.072876},
    {33.271610, 2.985300, 1162.474731},
    {30.724583, 1.675000, 426.597992},
    {30.692019, 2.936000, 1052.267944},
    {29.899833, 1.754000, 7.114000},
    {28.913665, 5.179000, 103.093002},
    {27.694765, 2.155000, 632.783997},
    {26.153394, 3.678000, 213.298996},
    {25.079872, 0.643000, 1066.494995},
    {23.643181, 0.014000, 846.083008},
    {23.065125, 2.703000, 110.206001},
    {21.540659, 1.173000, 949.176025},
    {20.760539, 2.608000, 419.484985},
    {18.734994, 4.611000, 2118.763916},
    {11.489125, 4.778000, 742.989990},
    {11.090537, 3.350000, 1692.166016},
    {10.770330, 1.387000, 323.505005},
    {10.723805, 5.049000, 316.391998},
    {10.198039, 3.701000, 515.463989},
    {10.148892, 2.319000, 1478.866943},
    {10.099505, 3.153000, 1581.958984}
};

CONST VSOP87Coefficient B1JupiterCoefficients[] =
{
    {421.131808,  5.701665, 529.690979},
    {56.833089, 5.779400, 1059.381958},
    {55.506756, 5.474600, 522.577393},
    {47.031904, 4.734800, 536.804504},
    {41.158231, 3.141600, 0.000000},
    {18.601075, 4.746000, 1052.267944},
    {15.297059, 5.189000, 1066.494995},
    {14.000000, 6.186000, 7.114000},
    {12.247449, 3.927000, 1589.072998},
    {10.677078, 3.439000, 632.783997},
    {9.848858,  2.910000, 949.179993},
    {9.055385,  5.080000, 1162.469971},
    {8.774964,  2.510000, 103.089996},
    {8.774964,  0.610000, 419.480011},
    {8.602325,  5.500000, 515.460022},
    {7.810250,  5.450000, 213.300003},
    {7.071068,  3.950000, 735.880005},
    {6.782330,  0.540000, 110.209999},
    {6.708204,  1.900000, 846.080017},
    {6.082763,  4.700000, 543.919983},
    {6.000000,  6.110000, 316.390015},
    {5.656854,  4.920000, 1581.959961}
};

CONST VSOP87Coefficient B2JupiterCoefficients[] =
{
    {89.966660, 1.463200, 529.690979},
    {28.513155, 3.141600, 0.000000},
    {27.239677, 0.957000, 522.577026},
    {19.974984, 2.899000, 536.804993},
    {18.493242, 1.447000, 1059.381958},
    {8.602325,  0.410000, 1052.270020},
    {6.782330,  3.480000, 1066.500000},
    {5.477226,  1.930000, 1589.069946},
    {5.385165,  0.990000, 515.460022},
    {4.795832,  4.270000, 7.110000},
    {3.741657,  2.920000, 543.919983},
    {3.464102,  5.220000, 632.780029},
    {3.316625,  4.880000, 949.179993},
    {2.449490,  6.210000, 1045.150024}
};

CONST VSOP87Coefficient B3JupiterCoefficients[] =
{
    {15.874508, 3.381000, 529.690979},
    {11.045361, 2.733000, 522.577026},
    {7.000000,  1.040000, 536.799988},
    {3.316625,  2.310000, 1052.270020},
    {2.828427,  2.770000, 515.460022},
    {2.645751,  4.250000, 1059.380005},
    {2.449490,  1.780000, 1066.500000},
    {2.000000,  1.130000, 543.919983},
    {1.732051,  3.140000, 0.000000}
};

CONST VSOP87Coefficient B4JupiterCoefficients[] =
{
    {3.872983,  4.530000, 522.580017},
    {2.236068,  4.470000, 529.690002},
    {2.000000,  5.440000, 536.799988},
    {1.732051,  0.000000, 0.000000},
    {1.414214,  4.520000, 515.460022},
    {1.000000,  4.200000, 1052.270020}
};

CONST VSOP87Coefficient B5JupiterCoefficients[] =
{
    {1.000000,  0.090000, 522.580017}
};


CONST VSOP87Coefficient R0JupiterCoefficients[] =
{
    {22822.958375,  0.000000, 0.000000},
    {5020.889065, 3.491086, 529.690979},
    {781.408984,  3.841154, 1059.381958},
    {531.064026,  2.574199, 632.783752},
    {433.182410,  2.075904, 522.577393},
    {294.606517,  0.710010, 419.484650},
    {268.445525,  0.214660, 536.804504},
    {255.962888,  5.979960, 316.391876},
    {173.594355,  2.161320, 949.175598},
    {170.689777,  1.677590, 103.092773},
    {154.748183,  0.274580, 7.113550},
    {153.143723,  3.540230, 735.876526},
    {149.278264,  4.193630, 1589.072876},
    {114.162165,  2.960430, 1162.474731},
    {112.911470,  2.715500, 1052.268433},
    {98.503807, 1.906700, 206.185501},
    {95.713113, 4.413500, 213.299103},
    {88.853813, 2.479100, 426.598206},
    {84.011904, 2.181800, 1265.567505},
    {78.345389, 6.264200, 846.082825},
    {74.006756, 5.657300, 639.897278},
    {64.575537, 2.016100, 515.463928},
    {64.319515, 2.722200, 625.670227},
    {59.186147, 0.565300, 1066.495483},
    {51.156622, 2.009900, 1581.959351},
    {50.000000, 4.551800, 838.969299},
    {46.130250, 6.127500, 742.990112},
    {43.726422, 0.856200, 412.371094},
    {40.137264, 3.088700, 1368.660278},
    {38.457769, 2.680300, 1478.866577},
    {35.085610, 1.890400, 323.505402},
    {34.885527, 1.801700, 110.206299},
    {31.859065, 1.386700, 454.909393},
    {31.606961, 2.872000, 309.278015},
    {31.000000, 4.549000, 2118.763916},
    {29.765752, 4.148000, 533.622986},
    {28.653098, 1.593000, 1898.350952},
    {28.495614, 5.941000, 909.818970},
    {27.874720, 3.677000, 728.763000},
    {26.962938, 3.988000, 1155.360962},
    {25.592968, 2.791000, 1685.052002},
    {25.573424, 3.382000, 1692.166016},
    {24.919872, 4.823000, 956.289001},
    {24.799194, 2.276000, 942.062012},
    {23.706539, 0.081000, 543.918030},
    {23.280893, 0.284000, 525.758972}
};

CONST VSOP87Coefficient R1JupiterCoefficients[] =
{
    {1127.741992, 2.649375, 529.690979},
    {248.318344,  3.000760, 1059.381958},
    {231.179584,  3.897180, 522.577393},
    {203.445324,  0.000000, 0.000000},
    {176.592752,  4.882770, 536.804504},
    {108.843925,  2.413300, 419.484650},
    {95.739229, 4.759800, 7.113500},
    {58.343809, 3.346900, 1589.072876},
    {56.595053, 5.210800, 735.876526},
    {56.356011, 2.793000, 103.092796},
    {52.971691, 3.742200, 515.463928},
    {51.739733, 4.330500, 1052.268433},
    {50.990195, 3.634400, 206.185501},
    {49.112117, 1.469500, 426.598206},
    {45.836667, 3.927600, 639.897278},
    {40.570926, 5.309500, 1066.495483},
    {40.509258, 4.416300, 625.670227},
    {32.403703, 3.161100, 213.299103},
    {32.015621, 2.554300, 412.371094},
    {28.390139, 2.678000, 632.783997},
    {27.221315, 2.171000, 1162.474976},
    {26.019224, 6.250000, 838.968994},
    {23.811762, 4.577000, 742.989990},
    {22.022716, 2.469000, 949.176025},
    {21.656408, 4.710000, 543.918030},
    {21.095023, 0.403000, 323.505005},
    {20.396078, 5.368000, 728.763000},
    {20.049938, 4.605000, 309.278015},
    {18.627936, 4.681000, 14.227000},
    {18.384776, 3.168000, 956.289001},
    {16.155494, 5.343000, 846.083008},
    {15.716234, 3.923000, 942.062012},
    {14.832397, 4.842000, 1368.660034},
    {14.247807, 5.600000, 1155.360962},
    {14.142136, 4.439000, 1045.155029},
    {14.035669, 3.706000, 2118.763916},
    {14.000000, 3.759000, 199.072006},
    {13.564660, 4.265000, 95.978996},
    {13.416408, 4.402000, 532.872009},
    {13.038405, 4.846000, 526.510010},
    {12.083046, 6.130000, 533.622986},
    {11.532563, 1.322000, 110.206001},
    {11.489125, 4.512000, 525.758972}
};

CONST VSOP87Coefficient R2JupiterCoefficients[] =
{
    {282.214457,  1.358660, 529.690979},
    {90.840520, 5.777700, 522.577393},
    {83.845095, 3.274800, 536.804504},
    {72.897188, 1.838400, 1059.381958},
    {43.139309, 2.976800, 7.113500},
    {31.048349, 5.480000, 515.463989},
    {28.913665, 4.199000, 419.484985},
    {22.315914, 3.142000, 0.000000},
    {20.663978, 2.228000, 639.896973},
    {20.149442, 3.783000, 1066.494995},
    {19.416488, 2.242000, 1589.072998},
    {19.052559, 5.368000, 206.186005},
    {18.493242, 6.099000, 1052.267944},
    {18.411953, 6.127000, 625.669983},
    {18.248288, 0.003000, 426.597992},
    {16.733201, 4.262000, 412.371002},
    {16.031220, 0.963000, 632.783997},
    {15.165751, 0.705000, 735.877014},
    {14.177447, 3.069000, 543.918030},
    {14.142136, 4.429000, 103.093002},
    {11.789826, 2.932000, 14.227000},
    {10.677078, 0.787000, 728.763000},
    {9.746794,  1.700000, 838.969971},
    {9.273618,  5.140000, 323.510010},
    {9.110434,  0.060000, 309.279999},
    {8.944272,  2.980000, 742.989990},
    {8.660254,  1.600000, 956.289978},
    {8.366600,  1.510000, 213.300003},
    {8.185353,  5.470000, 199.070007},
    {7.874008,  6.100000, 1045.150024},
    {7.483315,  0.960000, 1162.469971},
    {7.211103,  5.580000, 942.059998},
    {7.071068,  2.720000, 532.869995},
    {6.708204,  5.520000, 508.350006},
    {6.633250,  0.270000, 526.510010},
    {6.324555,  5.950000, 95.980003}
};

CONST VSOP87Coefficient R3JupiterCoefficients[] =
{
    {59.321160, 6.058000, 529.690979},
    {32.756679, 1.673200, 536.804504},
    {30.265492, 1.413000, 522.577026},
    {18.493242, 0.523000, 1059.381958},
    {15.968719, 1.196000, 7.114000},
    {14.899664, 0.952000, 515.463989},
    {9.486833,  3.140000, 0.000000},
    {8.306624,  2.270000, 1066.500000},
    {7.615773,  1.410000, 543.919983},
    {7.615773,  0.530000, 639.900024},
    {7.141428,  5.980000, 412.369995},
    {6.855655,  1.580000, 625.669983},
    {6.557439,  6.120000, 419.480011},
    {6.082763,  1.180000, 14.230000},
    {5.830952,  1.670000, 1052.270020},
    {5.830952,  0.850000, 206.190002},
    {5.567764,  1.040000, 1589.069946},
    {5.477226,  4.630000, 426.600006},
    {4.582576,  2.500000, 728.760010},
    {3.872983,  0.890000, 199.070007},
    {3.741657,  0.960000, 508.350006},
    {3.605551,  1.500000, 1045.150024},
    {3.464102,  2.610000, 735.880005},
    {3.464102,  3.560000, 323.510010},
    {3.316625,  1.790000, 309.279999},
    {3.316625,  6.280000, 956.289978},
    {3.162278,  6.260000, 103.089996},
    {3.000000,  3.450000, 838.969971}
};

CONST VSOP87Coefficient R4JupiterCoefficients[] =
{
    {11.357817, 0.084000, 536.804993},
    {10.630146, 4.249000, 529.690979},
    {9.110434,  3.300000, 522.580017},
    {6.164414,  2.730000, 515.460022},
    {5.196152,  5.690000, 7.110000},
    {4.242641,  5.400000, 1059.380005},
    {3.605551,  6.020000, 543.919983},
    {3.000000,  0.770000, 1066.500000},
    {2.828427,  5.680000, 14.230000},
    {2.645751,  1.430000, 412.369995},
    {2.449490,  5.120000, 639.900024},
    {2.236068,  3.340000, 625.669983},
    {1.732051,  3.400000, 1052.270020},
    {1.732051,  4.160000, 728.760010},
    {1.732051,  2.900000, 426.600006}
};

CONST VSOP87Coefficient R5JupiterCoefficients[] =
{
    {3.316625,  4.750000, 536.799988},
    {2.000000,  5.920000, 522.580017},
    {1.414214,  5.570000, 515.460022},
    {1.414214,  4.300000, 543.919983},
    {1.414214,  3.690000, 7.110000},
    {1.414214,  4.130000, 1059.380005},
    {1.414214,  5.490000, 1066.500000}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Saturn.
//

CONST VSOP87Coefficient L0SaturnCoefficients[] =
{
    {9348.869129, 0.000000, 0.000000},
    {3332.815626, 3.962051, 213.299103},
    {1189.180810, 4.585815, 7.113547},
    {631.172718,  0.521120, 206.185547},
    {592.257545,  3.303299, 426.598206},
    {454.770272,  0.246584, 103.092773},
    {281.551061,  3.840070, 220.412643},
    {154.887056,  4.669770, 110.206322},
    {128.740048,  0.437190, 419.484650},
    {125.777581,  0.938090, 632.783752},
    {122.694743,  2.716700, 639.897278},
    {122.094226,  5.769030, 316.391876},
    {120.871833,  1.565190, 3.932150},
    {114.717043,  4.448910, 14.227090},
    {114.039467,  5.981190, 11.045700},
    {103.561576,  3.129400, 202.253403},
    {78.268768, 1.763300, 277.035004},
    {76.570229, 0.236600, 529.690979},
    {72.304910, 4.207800, 3.181400},
    {70.851958, 3.177900, 433.711700},
    {67.771675, 0.619800, 199.072006},
    {63.292970, 2.244800, 63.735901},
    {62.241465, 3.222800, 138.517502},
    {57.175169, 0.774900, 949.175598},
    {54.350713, 0.982800, 95.979202},
    {49.608467, 2.031600, 735.876526},
    {41.928511, 3.265800, 522.577393},
    {40.496913, 5.505000, 846.082825},
    {39.761791, 4.372700, 309.278290},
    {37.296112, 4.023300, 323.505402},
    {33.526109, 2.837300, 415.552490},
    {32.969683, 4.183400, 2.447700},
    {31.890437, 3.717000, 227.526199},
    {30.935417, 0.507000, 1265.567017},
    {29.206164, 3.421000, 175.166000},
    {29.137605, 3.191000, 209.367004},
    {28.089144, 5.007000, 0.963000},
    {27.367864, 2.144000, 853.195984},
    {27.276363, 5.253000, 224.345001},
    {26.210685, 1.747000, 1052.267944},
    {25.573424, 1.599000, 0.048000},
    {25.179357, 2.299000, 412.371002},
    {25.000000, 0.970000, 210.117996},
    {24.083189, 3.093000, 74.781998},
    {23.366643, 2.127000, 350.332001},
    {23.302360, 1.518000, 9.561000},
    {23.021729, 4.449000, 117.320000},
    {21.863211, 2.965000, 137.033005},
    {21.771541, 5.475000, 742.989990},
    {21.260292, 1.044000, 490.334015},
    {21.189620, 1.290000, 127.472000},
    {19.287302, 2.278000, 217.231003},
    {18.841444, 3.013000, 838.968994},
    {18.627936, 1.539000, 340.770996},
    {18.520259, 0.246000, 0.521000},
    {18.165902, 0.247000, 1581.958984},
    {17.944358, 0.961000, 203.738007},
    {17.944358, 2.572000, 647.010986},
    {17.578396, 3.495000, 216.479996},
    {16.941074, 2.370000, 351.816986},
    {16.673332, 0.400000, 211.815002},
    {15.779734, 1.470000, 1368.660034},
    {15.066519, 4.910000, 12.530000},
    {14.832397, 4.204000, 200.768997},
    {14.456832, 1.345000, 625.669983},
    {14.422205, 0.483000, 1162.474976},
    {14.422205, 1.283000, 39.356998},
    {14.282857, 6.011000, 265.989014},
    {13.601471, 3.503000, 149.563004},
    {13.564660, 0.973000, 4.193000},
    {13.490738, 5.491000, 2.921000},
    {13.190906, 1.863000, 0.751000},
    {12.845233, 0.440000, 5.417000},
    {12.206556, 5.736000, 52.689999},
    {12.165525, 1.535000, 5.629000},
    {12.083046, 6.231000, 195.139999},
    {11.832160, 4.295000, 21.341000},
    {11.445523, 4.068000, 10.295000},
    {11.180340, 6.277000, 1898.350952},
    {11.045361, 1.976000, 4.666000},
    {10.862780, 5.341000, 554.070007},
    {10.816654, 2.679000, 1155.360962},
    {10.677078, 5.594000, 1059.381958},
    {10.583005, 1.105000, 191.207993},
    {10.488088, 0.166000, 1.484000},
    {10.440307, 3.438000, 536.804993},
    {10.344080, 4.012000, 956.289001},
    {10.198039, 2.192000, 88.865997},
    {10.148892, 1.197000, 1685.052002},
    {10.049876, 4.965000, 269.920990}
};

CONST VSOP87Coefficient L1SaturnCoefficients[] =
{
    {146131.090450, 0.000000, 0.000000},
    {1138.795416, 1.828205, 213.299103},
    {751.230990,  2.885001, 7.113547},
    {328.144785,  2.277699, 206.185547},
    {313.564985,  1.080700, 426.598175},
    {200.636487,  2.041280, 220.412643},
    {141.216146,  1.279550, 103.092773},
    {102.528045,  2.748800, 14.227090},
    {83.300660, 0.404900, 639.897278},
    {69.303680, 2.441900, 419.484589},
    {63.686733, 2.921700, 110.206299},
    {61.392182, 3.649700, 3.932200},
    {58.180753, 2.416900, 3.181400},
    {57.463032, 1.262600, 433.711700},
    {55.416604, 2.327400, 199.072006},
    {44.192760, 3.563900, 11.045700},
    {35.341194, 2.628000, 95.979202},
    {30.364453, 1.961000, 227.526001},
    {26.570661, 4.417000, 529.690979},
    {25.495098, 6.174000, 202.253006},
    {25.059928, 6.111000, 309.278015},
    {22.068076, 6.040000, 853.195984},
    {21.886069, 4.988000, 522.577026},
    {21.633308, 4.617000, 63.736000},
    {20.420578, 2.117000, 323.505005},
    {20.199010, 1.299000, 209.367004},
    {18.761663, 2.317000, 632.783997},
    {18.547237, 3.959000, 412.371002},
    {18.439089, 3.634000, 316.391998},
    {18.330303, 3.772000, 735.877014},
    {18.220867, 2.861000, 210.117996},
    {17.000000, 2.733000, 117.320000},
    {16.763055, 5.744000, 2.448000},
    {16.309506, 0.543000, 647.010986},
    {15.165751, 1.644000, 216.479996},
    {13.856406, 2.965000, 224.345001},
    {13.152946, 4.077000, 846.083008},
    {12.922848, 2.597000, 21.341000},
    {11.661904, 2.286000, 10.295000},
    {11.445523, 3.441000, 742.989990},
    {11.313708, 4.095000, 217.231003},
    {10.440307, 6.161000, 415.552002},
    {9.899495,  4.730000, 838.969971},
    {9.695360,  3.480000, 1052.270020},
    {9.591663,  3.950000, 88.870003},
    {9.327379,  1.220000, 440.829987},
    {9.110434,  3.110000, 625.669983},
    {8.831761,  6.240000, 302.160004},
    {8.185353,  0.290000, 4.670000},
    {8.124038,  5.650000, 9.560000},
    {7.874008,  4.290000, 127.470001},
    {7.874008,  1.830000, 195.139999},
    {7.615773,  2.480000, 191.960007},
    {7.549834,  5.020000, 137.029999},
    {7.416198,  0.280000, 74.779999},
    {7.348469,  5.130000, 490.329987},
    {7.141428,  1.460000, 536.799988},
    {6.855655,  1.180000, 149.559998},
    {6.855655,  5.150000, 515.460022},
    {6.782330,  2.230000, 956.289978},
    {6.633250,  2.710000, 5.420000},
    {6.324555,  0.410000, 269.920013},
    {6.324555,  3.890000, 728.760010},
    {6.164414,  0.650000, 422.670013},
    {6.164414,  2.530000, 12.530000},
    {6.082763,  3.780000, 2.920000},
    {5.916080,  6.080000, 5.630000},
    {5.830952,  3.210000, 1368.660034},
    {5.744563,  4.640000, 277.029999},
    {5.744563,  5.430000, 1066.500000},
    {5.744563,  0.300000, 351.820007},
    {5.656854,  4.390000, 1155.359985},
    {5.567764,  2.430000, 52.689999},
    {5.477226,  2.840000, 203.000000},
    {5.477226,  6.190000, 284.149994},
    {5.477226,  3.390000, 1059.380005},
    {5.385165,  2.030000, 330.619995},
    {5.291503,  2.740000, 265.989990},
    {5.099020,  4.510000, 340.769989}
};

CONST VSOP87Coefficient L2SaturnCoefficients[] =
{
    {341.234523,  1.179879, 7.113547},
    {303.184762,  0.074250, 213.299103},
    {300.985049,  0.000000, 0.000000},
    {123.600162,  4.064920, 206.185547},
    {103.106741,  0.257780, 220.412643},
    {102.980581,  5.409640, 426.598175},
    {65.306967, 1.046000, 14.227100},
    {34.871192, 2.918600, 103.092796},
    {34.132096, 4.609400, 639.897278},
    {32.893768, 5.691300, 433.711700},
    {32.326460, 4.042100, 199.072006},
    {31.937439, 0.633700, 3.181400},
    {25.179357, 4.388000, 419.484985},
    {23.430749, 5.573000, 3.932000},
    {21.377558, 1.268000, 110.206001},
    {20.615528, 0.209000, 227.526001},
    {16.552945, 4.288000, 95.978996},
    {12.727922, 1.381000, 11.046000},
    {11.357817, 1.566000, 309.278015},
    {10.816654, 3.881000, 853.195984},
    {10.246951, 4.900000, 647.010986},
    {10.049876, 0.893000, 21.341000},
    {9.797959,  2.910000, 316.390015},
    {9.746794,  5.630000, 412.369995},
    {9.219544,  5.730000, 209.369995},
    {9.110434,  6.050000, 216.479996},
    {9.055385,  1.020000, 117.320000},
    {8.660254,  4.760000, 210.119995},
    {8.185353,  0.460000, 522.580017},
    {8.124038,  0.480000, 10.290000},
    {8.000000,  0.350000, 323.510010},
    {7.810250,  4.880000, 632.780029},
    {7.280110,  2.750000, 529.690002},
    {6.782330,  5.690000, 440.829987},
    {6.708204,  1.670000, 202.250000},
    {6.480741,  5.710000, 88.870003},
    {5.656854,  0.070000, 63.740002},
    {5.656854,  1.670000, 302.160004},
    {5.567764,  4.160000, 191.960007},
    {5.196152,  0.830000, 224.339996},
    {5.000000,  5.660000, 735.880005},
    {4.472136,  5.940000, 217.229996},
    {4.242641,  4.900000, 625.669983},
    {4.123106,  1.630000, 742.989990},
    {4.000000,  0.580000, 515.460022},
    {3.741657,  0.210000, 838.969971},
    {3.741657,  3.760000, 195.139999},
    {3.464102,  4.720000, 203.000000},
    {3.464102,  0.130000, 234.639999},
    {3.464102,  3.120000, 846.080017},
    {3.316625,  5.920000, 536.799988},
    {3.316625,  5.600000, 728.760010},
    {3.316625,  3.200000, 1066.500000},
    {3.162278,  4.990000, 422.670013},
    {3.162278,  0.260000, 330.619995},
    {3.162278,  4.150000, 860.309998},
    {3.000000,  0.460000, 956.289978},
    {2.828427,  2.140000, 269.920013},
    {2.828427,  5.250000, 429.779999},
    {2.828427,  4.030000, 9.560000},
    {2.645751,  5.400000, 1052.270020},
    {2.449490,  4.460000, 284.149994},
    {2.449490,  5.930000, 405.260010}
};

CONST VSOP87Coefficient L3SaturnCoefficients[] =
{
    {126.645174,  5.739450, 7.113550},
    {65.192024, 4.585400, 213.299103},
    {43.669211, 4.760800, 220.412598},
    {38.288379, 5.913300, 206.185501},
    {34.088121, 5.619700, 14.227100},
    {32.664966, 3.608200, 426.598206},
    {15.459625, 3.861000, 433.712006},
    {15.394804, 5.768000, 199.072006},
    {12.884099, 5.116000, 3.181000},
    {12.288206, 2.736000, 639.896973},
    {11.445523, 4.743000, 227.526001},
    {7.937254,  0.230000, 419.480011},
    {7.874008,  4.740000, 103.089996},
    {6.324555,  5.470000, 21.340000},
    {6.324555,  5.960000, 95.980003},
    {6.244998,  5.830000, 110.209999},
    {5.291503,  3.010000, 647.010010},
    {5.000000,  0.990000, 3.930000},
    {4.358899,  1.920000, 853.200012},
    {4.242641,  4.970000, 10.290000},
    {4.242641,  1.030000, 412.369995},
    {4.242641,  4.200000, 216.479996},
    {4.242641,  3.320000, 309.279999},
    {4.000000,  3.900000, 440.829987},
    {4.000000,  5.620000, 117.320000},
    {3.605551,  1.180000, 88.870003},
    {3.316625,  5.580000, 11.050000},
    {3.316625,  5.930000, 191.960007},
    {3.162278,  3.950000, 209.369995},
    {3.000000,  3.390000, 302.160004},
    {2.828427,  4.880000, 323.510010},
    {2.645751,  0.380000, 632.780029},
    {2.449490,  2.250000, 522.580017},
    {2.449490,  1.060000, 210.119995},
    {2.236068,  4.640000, 234.639999},
    {2.000000,  3.140000, 0.000000},
    {2.000000,  2.310000, 515.460022},
    {1.732051,  2.200000, 860.309998},
    {1.732051,  0.590000, 529.690002},
    {1.732051,  4.930000, 224.339996},
    {1.732051,  0.420000, 625.669983},
    {1.414214,  4.770000, 330.619995},
    {1.414214,  3.350000, 429.779999},
    {1.414214,  3.200000, 202.250000},
    {1.414214,  1.190000, 1066.500000},
    {1.414214,  1.350000, 405.260010},
    {1.414214,  4.160000, 223.589996},
    {1.414214,  3.070000, 654.119995}
};

CONST VSOP87Coefficient L4SaturnCoefficients[] =
{
    {40.767634, 3.998300, 7.113500},
    {16.031220, 2.984000, 220.412994},
    {15.362291, 3.902000, 14.227000},
    {12.206556, 2.741000, 213.298996},
    {10.677078, 3.142000, 0.000000},
    {10.488088, 1.515000, 206.186005},
    {8.246211,  1.720000, 426.600006},
    {6.324555,  2.050000, 433.709991},
    {6.164414,  1.240000, 199.070007},
    {5.567764,  3.010000, 227.529999},
    {3.872983,  0.830000, 639.900024},
    {3.000000,  3.710000, 21.340000},
    {2.449490,  2.420000, 419.480011},
    {2.449490,  1.160000, 647.010010},
    {2.000000,  1.450000, 95.980003},
    {2.000000,  2.120000, 440.829987},
    {1.732051,  4.090000, 110.209999},
    {1.732051,  2.770000, 412.369995},
    {1.732051,  3.010000, 88.870003},
    {1.732051,  0.000000, 853.200012},
    {1.732051,  0.390000, 103.089996},
    {1.414214,  3.780000, 117.320000},
    {1.414214,  2.830000, 234.639999},
    {1.414214,  5.080000, 309.279999},
    {1.414214,  2.240000, 216.479996},
    {1.414214,  5.190000, 302.160004},
    {1.000000,  1.550000, 191.960007}
};

CONST VSOP87Coefficient L5SaturnCoefficients[] =
{
    {11.135529, 2.259000, 7.114000},
    {5.830952,  2.160000, 14.230000},
    {5.291503,  1.200000, 220.410004},
    {2.449490,  1.220000, 227.529999},
    {2.236068,  0.240000, 433.709991},
    {2.000000,  6.230000, 426.600006},
    {1.732051,  2.970000, 199.070007},
    {1.732051,  4.290000, 206.190002},
    {1.414214,  6.250000, 213.300003},
    {1.000000,  5.280000, 639.900024},
    {1.000000,  0.240000, 440.829987},
    {1.000000,  3.140000, 0.000000}
};


CONST VSOP87Coefficient B0SaturnCoefficients[] =
{
    {2081.028111, 3.602844, 213.299103},
    {490.252996,  2.852385, 426.598206},
    {291.111662,  0.000000, 0.000000},
    {184.705170,  0.572970, 206.185547},
    {175.678684,  3.484420, 220.412643},
    {121.383689,  2.118470, 639.897278},
    {99.584135, 5.790000, 419.484589},
    {83.630138, 4.736000, 7.113500},
    {69.339743, 5.433100, 316.391907},
    {69.195376, 4.965100, 110.206299},
    {58.583274, 2.732600, 433.711700},
    {38.807216, 6.013000, 103.092796},
    {32.557641, 5.631000, 529.690979},
    {31.128765, 5.204000, 632.783997},
    {30.692019, 1.396000, 853.195984},
    {26.608269, 3.803000, 323.505005},
    {23.494680, 5.131000, 202.253006},
    {20.000000, 3.359000, 227.526001},
    {17.860571, 3.626000, 209.367004},
    {17.776389, 1.997000, 647.010986},
    {17.720045, 0.465000, 217.231003},
    {16.852300, 4.886000, 224.345001},
    {15.362291, 2.139000, 11.046000},
    {14.662878, 5.950000, 846.083008},
    {14.456832, 2.120000, 415.552002},
    {14.387495, 0.730000, 199.072006},
    {13.379088, 2.954000, 63.736000},
    {11.874342, 0.644000, 490.334015},
    {11.789826, 4.595000, 14.227000},
    {11.789826, 1.998000, 735.877014},
    {11.618950, 5.245000, 742.989990},
    {11.045361, 3.115000, 522.577026},
    {10.770330, 3.109000, 216.479996},
    {10.677078, 0.963000, 210.117996}
};

CONST VSOP87Coefficient B1SaturnCoefficients[] =
{
    {630.519627,  5.332900, 213.299088},
    {222.438756,  3.141590, 0.000000},
    {136.279125,  6.099190, 426.598175},
    {121.659361,  2.305860, 206.185547},
    {98.203870, 1.696700, 220.412598},
    {61.294372, 1.254300, 419.484589},
    {52.124850, 5.911700, 639.897278},
    {38.144462, 0.851600, 433.711700},
    {35.930488, 2.917700, 7.113500},
    {29.206164, 0.436000, 316.391998},
    {17.262677, 0.919000, 632.783997},
    {17.088007, 5.316000, 853.195984},
    {16.852300, 1.619000, 227.526001},
    {16.583124, 3.889000, 103.093002},
    {13.114877, 0.052000, 647.010986},
    {12.884099, 2.444000, 199.072006},
    {12.569805, 5.209000, 110.206001},
    {11.313708, 1.207000, 529.690979},
    {10.488088, 2.457000, 217.231003},
    {9.055385,  2.760000, 210.119995},
    {9.000000,  2.860000, 14.230000},
    {8.306624,  1.660000, 202.250000},
    {8.062258,  1.260000, 216.479996},
    {7.810250,  1.250000, 209.369995},
    {7.681146,  1.820000, 323.510010},
    {6.782330,  0.820000, 440.829987},
    {6.000000,  1.820000, 224.339996},
    {5.830952,  2.840000, 117.320000},
    {5.744563,  1.310000, 412.369995},
    {5.656854,  1.190000, 846.080017},
    {5.196152,  4.650000, 1066.500000},
    {5.196152,  4.440000, 11.050000}
};

CONST VSOP87Coefficient B2SaturnCoefficients[] =
{
    {143.631473,  0.504820, 213.299103},
    {60.991803, 3.998300, 206.185501},
    {40.336088, 6.181900, 220.412598},
    {36.687873, 0.000000, 0.000000},
    {26.570661, 3.039000, 419.484985},
    {19.104973, 5.099000, 426.597992},
    {18.165902, 5.279000, 433.712006},
    {14.798649, 3.828000, 639.896973},
    {11.789826, 1.043000, 7.114000},
    {10.198039, 6.157000, 227.526001},
    {9.643651,  1.980000, 316.390015},
    {8.426150,  4.150000, 199.070007},
    {7.211103,  2.880000, 632.780029},
    {7.000000,  4.430000, 647.010010},
    {6.403124,  3.160000, 853.200012},
    {5.385165,  4.530000, 210.119995},
    {4.898979,  1.120000, 14.230000},
    {4.582576,  4.350000, 217.229996},
    {4.472136,  5.310000, 440.829987},
    {4.242641,  0.850000, 110.209999},
    {4.123106,  5.680000, 216.479996},
    {4.000000,  4.260000, 103.089996},
    {3.741657,  3.000000, 412.369995},
    {3.464102,  2.530000, 529.690002},
    {2.828427,  3.320000, 202.250000},
    {2.645751,  5.560000, 209.369995},
    {2.645751,  0.290000, 323.510010},
    {2.449490,  1.160000, 117.320000},
    {2.449490,  3.610000, 860.309998}
};

CONST VSOP87Coefficient B3SaturnCoefficients[] =
{
    {25.806976, 1.990000, 213.298996},
    {25.139610, 5.698000, 206.186005},
    {19.949937, 0.000000, 0.000000},
    {13.711309, 4.338000, 220.412994},
    {9.591663,  4.840000, 419.480011},
    {7.211103,  3.420000, 433.709991},
    {6.480741,  2.380000, 426.600006},
    {5.099020,  4.400000, 227.529999},
    {4.582576,  5.850000, 199.070007},
    {4.242641,  1.990000, 639.900024},
    {3.316625,  5.370000, 7.110000},
    {3.162278,  2.550000, 647.010010},
    {2.645751,  3.460000, 316.390015},
    {2.449490,  4.800000, 632.780029},
    {2.449490,  0.020000, 210.119995},
    {2.449490,  3.520000, 440.829987},
    {2.236068,  5.640000, 14.230000},
    {2.236068,  1.220000, 853.200012},
    {2.000000,  4.710000, 412.369995},
    {1.732051,  0.630000, 103.089996},
    {1.414214,  3.720000, 216.479996}
};

CONST VSOP87Coefficient B4SaturnCoefficients[] =
{
    {8.944272,  1.120000, 206.190002},
    {5.656854,  3.120000, 213.300003},
    {4.123106,  2.480000, 220.410004},
    {3.464102,  3.140000, 0.000000},
    {3.000000,  0.380000, 419.480011},
    {2.449490,  1.560000, 433.709991},
    {2.236068,  2.630000, 227.529999},
    {2.236068,  1.280000, 199.070007},
    {1.000000,  1.430000, 426.600006},
    {1.000000,  0.670000, 647.010010},
    {1.000000,  1.720000, 440.829987},
    {1.000000,  6.180000, 639.900024}
};

CONST VSOP87Coefficient B5SaturnCoefficients[] =
{
    {2.828427,  2.820000, 206.190002},
    {1.000000,  0.510000, 220.410004}
};


CONST VSOP87Coefficient R0SaturnCoefficients[] =
{
    {30915.338200,  0.000000, 0.000000},
    {7274.708379, 2.392262, 213.299103},
    {1368.824313, 5.235496, 206.185547},
    {1210.233035, 1.647630, 426.598206},
    {906.582043,  5.935200, 316.391876},
    {739.937159,  5.015326, 103.092773},
    {609.658921,  2.271148, 220.412643},
    {601.479842,  3.139043, 7.113547},
    {374.990667,  5.704067, 632.783752},
    {330.113617,  3.293136, 110.206322},
    {262.691835,  5.941000, 419.484650},
    {247.089053,  0.940380, 639.897278},
    {221.162836,  1.557330, 202.253403},
    {184.780951,  0.195190, 277.035004},
    {180.005555,  5.470850, 949.175598},
    {144.696234,  0.463490, 735.876526},
    {144.357196,  1.521030, 433.711731},
    {144.038189,  5.332560, 199.072006},
    {123.685084,  3.059440, 529.690979},
    {119.565881,  2.604340, 323.505432},
    {113.507709,  1.648920, 138.517502},
    {109.512556,  5.980510, 846.082825},
    {106.677083,  1.731060, 522.577393},
    {98.974744, 5.204800, 1265.567505},
    {88.051122, 5.851900, 95.979202},
    {82.286086, 3.004300, 14.227100},
    {80.411442, 0.177300, 1052.268433},
    {76.485293, 1.455200, 415.552490},
    {72.849159, 0.597400, 63.735901},
    {68.527367, 2.149200, 227.526199},
    {63.592452, 1.640100, 209.366898},
    {60.728906, 0.780200, 412.371094},
    {58.830264, 1.850900, 175.166107},
    {58.480766, 4.945500, 1581.959351},
    {58.318093, 0.553900, 350.332092},
    {58.103356, 3.695300, 224.344803},
    {54.552727, 5.684700, 210.117706},
    {53.712196, 1.387600, 838.969299},
    {53.674948, 0.179600, 853.196411},
    {50.079936, 3.538500, 742.990112},
    {49.477268, 6.184100, 1368.660278},
    {49.050994, 2.965600, 117.319901},
    {46.626173, 0.015100, 340.770905},
    {44.988888, 5.054100, 11.045700}
};

CONST VSOP87Coefficient R1SaturnCoefficients[] =
{
    {2486.560074, 0.258435, 213.299103},
    {711.742931,  0.711147, 206.185547},
    {584.289312,  5.796358, 426.598206},
    {434.155502,  0.472157, 220.412643},
    {431.580815,  3.141593, 0.000000},
    {379.329672,  1.407449, 7.113547},
    {222.757716,  6.017440, 103.092773},
    {144.665131,  5.092460, 639.897278},
    {141.255088,  1.175600, 419.484650},
    {137.258879,  1.608200, 110.206322},
    {117.800679,  0.758860, 199.072006},
    {113.547347,  5.943300, 433.711731},
    {73.464277, 1.288500, 14.227100},
    {69.778220, 0.867900, 323.505402},
    {65.169011, 0.393000, 227.526199},
    {57.026310, 1.258500, 95.979202},
    {55.506756, 3.436600, 522.577393},
    {53.935146, 4.606800, 202.253403},
    {53.441557, 2.167300, 735.876526},
    {44.586994, 2.450500, 412.371094},
    {44.056782, 6.023900, 209.366898},
    {39.761791, 1.291900, 210.117706},
    {36.606010, 4.308000, 853.196411},
    {36.276714, 1.253000, 117.319901},
    {34.684290, 1.866500, 316.391907},
    {33.030289, 0.075300, 216.480499},
    {31.080541, 0.480000, 632.783997},
    {30.886890, 5.152000, 647.010986},
    {29.966648, 0.983000, 529.690979},
    {29.698485, 1.885000, 1052.267944},
    {29.563491, 1.402000, 224.345001},
    {28.017851, 3.064000, 838.968994},
    {27.202941, 1.382000, 625.669983},
    {25.651511, 4.144000, 309.278015},
    {25.495098, 1.725000, 742.989990},
    {24.758837, 3.033000, 63.736000},
    {24.474477, 2.549000, 217.231003},
    {22.427661, 2.130000, 3.932000}
};

CONST VSOP87Coefficient R2SaturnCoefficients[] =
{
    {660.985628,  4.786717, 213.299088},
    {268.184638,  2.500700, 206.185547},
    {223.085186,  4.971680, 220.412643},
    {207.896609,  3.869400, 426.598175},
    {172.180138,  5.963100, 7.113550},
    {68.709534, 2.475300, 199.072006},
    {64.358372, 4.106700, 433.711700},
    {61.554854, 3.097700, 639.897278},
    {54.442630, 1.372100, 103.092796},
    {50.556899, 2.850700, 419.484589},
    {48.238988, 0.000000, 0.000000},
    {46.989360, 6.275900, 110.206299},
    {46.776062, 5.855500, 14.227100},
    {44.237993, 4.924500, 227.526199},
    {30.397368, 5.464000, 323.505005},
    {26.570661, 2.971000, 95.978996},
    {23.366643, 4.129000, 412.371002},
    {20.760539, 5.178000, 522.577026},
    {20.124612, 4.173000, 209.367004},
    {19.773720, 4.481000, 216.479996},
    {19.339080, 5.834000, 117.320000},
    {19.000000, 3.277000, 647.010986},
    {18.867962, 3.192000, 210.117996},
    {18.055470, 2.269000, 853.195984},
    {14.387495, 4.022000, 735.877014},
    {14.282857, 0.088000, 202.253006},
    {13.416408, 3.597000, 632.783997},
    {13.341664, 4.097000, 440.825012},
    {12.409674, 3.135000, 625.669983},
    {12.165525, 0.136000, 302.165009},
    {11.532563, 2.594000, 191.957993},
    {11.489125, 5.933000, 309.278015}
};

CONST VSOP87Coefficient R3SaturnCoefficients[] =
{
    {142.530698,  3.021870, 213.299103},
    {94.466925, 3.191400, 220.412598},
    {83.120395, 4.351700, 206.185501},
    {63.929649, 4.224100, 7.113500},
    {62.281618, 2.010600, 426.598206},
    {32.726136, 4.203600, 199.072006},
    {30.116441, 2.283000, 433.712006},
    {24.617067, 3.175000, 227.526001},
    {24.433583, 4.135000, 14.227000},
    {21.977261, 1.173000, 639.896973},
    {19.824228, 0.000000, 0.000000},
    {15.132746, 4.698000, 419.484985},
    {13.711309, 4.590000, 110.206001},
    {12.247449, 3.202000, 103.093002},
    {11.000000, 3.768000, 323.505005},
    {10.099505, 4.710000, 95.978996},
    {10.049876, 5.819000, 412.371002},
    {9.643651,  1.440000, 647.010010},
    {9.165151,  2.630000, 216.479996},
    {8.544004,  4.150000, 117.320000},
    {7.874008,  2.310000, 440.829987},
    {7.416198,  0.310000, 853.200012},
    {7.071068,  2.390000, 209.369995},
    {6.708204,  4.370000, 191.960007},
    {6.403124,  0.690000, 522.580017},
    {6.324555,  1.840000, 302.160004},
    {6.164414,  5.940000, 88.870003},
    {5.656854,  4.010000, 21.340000}
};

CONST VSOP87Coefficient R4SaturnCoefficients[] =
{
    {34.669872, 1.415000, 220.412598},
    {26.608269, 1.162000, 213.298996},
    {22.715633, 6.240000, 206.186005},
    {20.663978, 2.469000, 7.114000},
    {16.370706, 0.187000, 426.597992},
    {13.038405, 5.959000, 199.072006},
    {12.247449, 0.480000, 433.712006},
    {12.041595, 1.442000, 227.526001},
    {11.000000, 2.405000, 14.227000},
    {6.855655,  5.570000, 639.900024},
    {4.358899,  5.860000, 647.010010},
    {4.123106,  0.530000, 440.829987},
    {4.000000,  2.900000, 110.209999},
    {3.872983,  0.300000, 419.480011},
    {3.741657,  1.300000, 412.369995},
    {3.605551,  2.090000, 323.510010},
    {3.316625,  0.220000, 95.980003},
    {3.316625,  2.460000, 117.320000},
    {3.162278,  3.140000, 0.000000},
    {3.000000,  1.560000, 88.870003},
    {3.000000,  2.280000, 21.340000},
    {3.000000,  0.680000, 216.479996},
    {2.828427,  1.270000, 234.639999}
};

CONST VSOP87Coefficient R5SaturnCoefficients[] =
{
    {11.357817, 5.913000, 220.412994},
    {5.656854,  0.690000, 7.110000},
    {5.196152,  5.910000, 227.529999},
    {4.472136,  4.950000, 433.709991},
    {4.472136,  0.670000, 14.230000},
    {3.741657,  2.670000, 206.190002},
    {3.741657,  1.460000, 199.070007},
    {3.605551,  4.590000, 426.600006},
    {2.645751,  4.630000, 213.300003},
    {2.236068,  3.610000, 639.900024},
    {2.000000,  4.900000, 440.829987},
    {1.732051,  4.070000, 647.010010},
    {1.732051,  4.660000, 191.960007},
    {1.732051,  0.490000, 323.510010},
    {1.732051,  3.180000, 419.480011},
    {1.414214,  3.700000, 88.870003},
    {1.414214,  3.320000, 95.980003},
    {1.414214,  0.560000, 117.320000}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Uranus.
//

CONST VSOP87Coefficient L0UranusCoefficients[] =
{
    {23412.161242,  0.000000, 0.000000},
    {3043.091849, 0.891064, 74.781601},
    {1226.477884, 3.627192, 1.484473},
    {604.964462,  1.899622, 73.297127},
    {521.850553,  3.358237, 149.563202},
    {265.194268,  5.392540, 63.735901},
    {262.474761,  6.092920, 76.266068},
    {248.995984,  2.269520, 2.968950},
    {248.899578,  2.850990, 11.045700},
    {162.692962,  3.141520, 71.812653},
    {160.346500,  6.113800, 454.909363},
    {145.186087,  4.360590, 148.078720},
    {133.487827,  1.744370, 36.648560},
    {120.884242,  4.737320, 3.932150},
    {105.655099,  5.826820, 224.344803},
    {104.871350,  0.488650, 138.517502},
    {97.606352, 2.955200, 35.164101},
    {86.867716, 5.236300, 109.945702},
    {64.961527, 3.233300, 70.849403},
    {63.655322, 2.277500, 151.047699},
    {59.076222, 5.483100, 146.594299},
    {57.922362, 1.065500, 4.453400},
    {56.071383, 4.752000, 77.750504},
    {54.101756, 4.629000, 9.561200},
    {54.055527, 5.352400, 85.827301},
    {47.675990, 4.366000, 70.328201},
    {46.357308, 0.607500, 38.132999},
    {45.287967, 1.517700, 0.111900},
    {44.631827, 4.924400, 277.035004},
    {40.828911, 3.627400, 380.127808},
    {39.153544, 2.585900, 52.690201},
    {37.094474, 2.042800, 65.220398},
    {37.040518, 4.196400, 111.430199},
    {35.832946, 3.113500, 202.253403},
    {35.805028, 0.542700, 222.860306},
    {35.270384, 0.916100, 2.447700},
    {34.942810, 0.199000, 108.461197},
    {33.926391, 4.179000, 33.679600},
    {33.911650, 0.933400, 3.181400},
    {33.015148, 1.775000, 12.530200},
    {32.741411, 0.235600, 62.251400},
    {30.757113, 1.192000, 127.472000},
    {26.608269, 5.183000, 213.298996},
    {25.553865, 0.966000, 78.713997},
    {25.059928, 0.182000, 984.599976},
    {24.637370, 5.432000, 529.690979},
    {23.643181, 3.358000, 0.521000},
    {22.891046, 2.013000, 299.126007},
    {21.977261, 2.106000, 0.963000},
    {21.702534, 1.407000, 184.727005},
    {21.610183, 0.415000, 145.110001},
    {20.832667, 5.521000, 183.242996},
    {20.124612, 5.987000, 8.077000},
    {19.974984, 0.338000, 415.552002},
    {19.899749, 5.870000, 351.816986},
    {19.467922, 2.350000, 56.622002},
    {17.606817, 5.833000, 145.630997},
    {17.320508, 5.644000, 22.091000},
    {17.146428, 5.839000, 39.618000},
    {15.874508, 1.637000, 221.376007},
    {15.779734, 4.746000, 225.828995},
    {15.459625, 2.350000, 137.033005},
    {14.966630, 0.516000, 84.343002},
    {14.933185, 2.843000, 0.261000},
    {14.832397, 1.922000, 67.667999},
    {14.730920, 6.142000, 5.938000},
    {14.696938, 4.778000, 340.770996},
    {14.422205, 5.580000, 68.844002},
    {14.212670, 1.297000, 0.048000},
    {14.106736, 0.956000, 152.531998},
    {13.928388, 1.888000, 456.394012},
    {13.892444, 0.916000, 453.424988},
    {13.674794, 1.319000, 0.160000},
    {13.490738, 3.536000, 79.235001},
    {13.152946, 1.539000, 160.608994},
    {13.114877, 5.680000, 219.891006},
    {13.038405, 3.677000, 5.417000},
    {13.000000, 5.879000, 18.159000},
    {12.845233, 1.424000, 106.976997},
    {12.767145, 3.050000, 112.915001},
    {12.569805, 0.738000, 54.174999},
    {12.124356, 1.263000, 59.804001},
    {11.958261, 1.300000, 35.424999},
    {11.789826, 5.386000, 32.195000},
    {11.789826, 4.260000, 909.818970},
    {11.135529, 1.374000, 7.114000},
    {10.488088, 2.027000, 554.070007},
    {10.440307, 5.706000, 77.962997},
    {10.198039, 5.028000, 0.751000},
    {10.198039, 1.458000, 24.379000},
    {10.148892, 0.681000, 14.978000}
};

CONST VSOP87Coefficient L1UranusCoefficients[] =
{
    {86617.221856,  0.000000, 0.000000},
    {393.011450,  5.242017, 74.781601},
    {156.384142,  1.712560, 1.484470},
    {96.218501, 0.428400, 11.045700},
    {90.917545, 1.502200, 63.735901},
    {88.555068, 1.319800, 149.563202},
    {62.441973, 0.464800, 3.932200},
    {47.791213, 4.173700, 76.266098},
    {43.897608, 0.530100, 2.968900},
    {35.114100, 1.586300, 70.849403},
    {28.124722, 5.436000, 3.181000},
    {27.694765, 1.996000, 73.296997},
    {21.954498, 2.984000, 85.827003},
    {21.213203, 4.138000, 138.516998},
    {21.118712, 3.723000, 224.345001},
    {20.663978, 4.731000, 71.813004},
    {18.814888, 2.583000, 148.078995},
    {18.654758, 2.454000, 9.561000},
    {17.804494, 5.579000, 52.689999},
    {14.352700, 2.363000, 2.448000},
    {13.747727, 4.202000, 56.622002},
    {13.564660, 0.284000, 151.048004},
    {13.416408, 5.684000, 12.530000},
    {13.076697, 3.001000, 78.713997},
    {12.569805, 2.909000, 0.963000},
    {12.449900, 5.591000, 4.453000},
    {12.409674, 4.652000, 35.164001},
    {12.328828, 2.942000, 77.750999},
    {11.958261, 2.590000, 62.250999},
    {11.000000, 4.148000, 127.472000},
    {10.770330, 3.732000, 65.220001},
    {10.099505, 4.188000, 145.630997},
    {10.099505, 6.034000, 0.112000},
    {9.380832,  3.990000, 18.160000},
    {9.380832,  6.160000, 202.250000},
    {9.000000,  2.640000, 22.090000},
    {8.485281,  6.050000, 70.330002},
    {8.306624,  4.050000, 77.959999},
    {7.681146,  3.700000, 67.669998},
    {6.855655,  3.540000, 351.820007},
    {6.633250,  5.910000, 7.110000},
    {6.557439,  5.720000, 5.420000},
    {6.244998,  4.920000, 222.860001},
    {6.000000,  5.900000, 33.680000},
    {6.000000,  3.290000, 8.080000},
    {6.000000,  3.330000, 71.599998},
    {5.916080,  5.080000, 38.130001},
    {5.567764,  5.620000, 984.599976},
    {5.567764,  5.500000, 59.799999},
    {5.567764,  5.460000, 160.610001},
    {5.477226,  1.660000, 447.799988},
    {5.385165,  1.150000, 462.019989},
    {5.385165,  4.520000, 84.339996},
    {5.196152,  5.540000, 131.399994},
    {5.196152,  6.150000, 299.130005},
    {5.099020,  4.990000, 137.029999},
    {5.000000,  5.740000, 380.130005}
};

CONST VSOP87Coefficient L2UranusCoefficients[] =
{
    {230.288949,  0.000000, 0.000000},
    {48.559242, 2.260100, 74.781601},
    {27.730849, 4.526000, 11.046000},
    {23.494680, 3.258000, 63.736000},
    {23.280893, 2.276000, 3.932000},
    {23.000000, 4.923000, 1.484000},
    {16.062378, 3.691000, 3.181000},
    {15.459625, 5.858000, 149.563004},
    {13.490738, 6.218000, 70.848999},
    {7.348469,  1.440000, 76.269997},
    {7.000000,  6.030000, 56.619999},
    {6.708204,  3.910000, 2.450000},
    {6.708204,  0.810000, 85.830002},
    {6.164414,  1.780000, 52.689999},
    {6.082763,  4.460000, 2.970000},
    {5.744563,  0.860000, 9.560000},
    {5.385165,  5.100000, 73.300003},
    {4.898979,  2.110000, 18.160000},
    {4.690416,  5.990000, 138.520004},
    {4.690416,  4.820000, 78.709999},
    {4.582576,  2.400000, 77.959999},
    {4.582576,  2.170000, 224.339996},
    {4.123106,  2.540000, 145.630005},
    {4.123106,  3.470000, 12.530000},
    {3.464102,  0.020000, 22.090000},
    {3.316625,  0.080000, 127.470001},
    {3.162278,  5.160000, 71.599998},
    {3.162278,  4.460000, 62.250000},
    {3.000000,  4.260000, 7.110000},
    {2.828427,  5.500000, 67.669998},
    {2.645751,  1.250000, 5.420000},
    {2.449490,  3.360000, 447.799988},
    {2.449490,  5.450000, 65.220001},
    {2.449490,  4.520000, 151.050003},
    {2.449490,  5.730000, 462.019989}
};

CONST VSOP87Coefficient L3UranusCoefficients[] =
{
    {11.000000, 0.024000, 74.781998},
    {8.246211,  4.120000, 3.930000},
    {7.280110,  2.390000, 11.050000},
    {6.782330,  0.000000, 0.000000},
    {6.708204,  2.040000, 3.180000},
    {6.633250,  2.960000, 1.480000},
    {5.000000,  4.890000, 63.740002},
    {4.582576,  4.550000, 70.849998},
    {4.472136,  2.310000, 149.559998},
    {3.000000,  1.580000, 56.619999},
    {2.000000,  0.230000, 18.160000},
    {2.000000,  5.390000, 76.269997},
    {2.000000,  0.950000, 77.959999},
    {1.732051,  4.980000, 85.830002},
    {1.732051,  4.130000, 52.689999},
    {1.732051,  0.370000, 78.709999},
    {1.414214,  0.860000, 145.630005},
    {1.414214,  5.660000, 9.560000}
};

CONST VSOP87Coefficient L4UranusCoefficients[] =
{
    {10.677078, 3.142000, 0.000000},
    {2.449490,  4.580000, 74.779999},
    {1.732051,  0.350000, 11.050000},
    {1.000000,  3.420000, 56.619999}
};


CONST VSOP87Coefficient B0UranusCoefficients[] =
{
    {1160.292205, 2.618778, 74.781601},
    {249.681797,  5.081110, 149.563202},
    {248.195487,  3.141590, 0.000000},
    {99.819838, 1.616000, 76.266098},
    {99.629313, 0.576300, 73.297096},
    {57.087652, 1.261200, 224.344803},
    {54.516053, 2.243700, 1.484500},
    {44.833024, 6.055500, 148.078705},
    {39.012818, 0.279600, 63.735901},
    {30.397368, 4.038000, 151.048004},
    {27.586228, 6.140000, 71.813004},
    {22.847319, 3.321000, 138.516998},
    {21.517435, 0.743000, 85.827003},
    {20.904545, 3.381000, 529.690979},
    {20.856654, 0.341000, 77.750999},
    {20.760539, 3.554000, 213.298996},
    {20.493902, 5.213000, 11.046000},
    {15.652476, 0.788000, 2.969000},
    {15.264338, 2.257000, 222.860001},
    {14.696938, 1.591000, 38.132999},
    {13.416408, 3.725000, 299.126007},
    {13.228757, 1.236000, 146.593994},
    {13.190906, 1.937000, 380.127991},
    {12.649111, 5.336000, 111.430000},
    {12.000000, 5.962000, 35.164001},
    {10.770330, 5.739000, 70.848999},
    {10.295630, 0.941000, 70.328003},
    {10.099505, 2.619000, 78.713997}
};

CONST VSOP87Coefficient B1UranusCoefficients[] =
{
    {454.275247,  4.123943, 74.781601},
    {92.536479, 0.338200, 149.563202},
    {41.545156, 2.121900, 73.297096},
    {37.067506, 0.000000, 0.000000},
    {37.000000, 3.068600, 76.266098},
    {21.236761, 3.777000, 1.484000},
    {20.000000, 2.848000, 224.345001},
    {17.521415, 1.255000, 148.078995},
    {12.409674, 3.786000, 63.736000},
    {10.583005, 5.573000, 151.048004},
    {10.535654, 5.329000, 138.516998},
    {9.110434,  3.590000, 71.809998},
    {7.483315,  3.400000, 85.830002},
    {7.348469,  1.700000, 77.750000},
    {6.480741,  1.210000, 11.050000},
    {6.403124,  4.450000, 78.709999},
    {5.656854,  3.770000, 222.860001},
    {5.477226,  2.560000, 2.970000},
    {5.196152,  5.340000, 213.300003},
    {5.099020,  0.420000, 380.130005}
};

CONST VSOP87Coefficient B2UranusCoefficients[] =
{
    {95.979164, 5.800400, 74.781601},
    {23.600847, 0.000000, 0.000000},
    {16.911535, 2.177000, 149.563004},
    {9.746794,  3.840000, 73.300003},
    {6.708204,  4.880000, 76.269997},
    {4.472136,  5.460000, 1.480000},
    {3.872983,  0.880000, 138.520004},
    {3.741657,  2.850000, 148.080002},
    {3.741657,  5.070000, 63.740002},
    {3.162278,  5.000000, 224.339996},
    {2.828427,  6.270000, 78.709999}
};

CONST VSOP87Coefficient B3UranusCoefficients[] =
{
    {16.370706, 1.251000, 74.781998},
    {3.316625,  3.140000, 0.000000},
    {2.449490,  4.010000, 149.559998},
    {1.732051,  5.780000, 73.300003}
};

CONST VSOP87Coefficient B4UranusCoefficients[] =
{
    {2.449490,  2.850000, 74.779999}
};


CONST VSOP87Coefficient R0UranusCoefficients[] =
{
    {43832.235261,  0.000000, 0.000000},
    {9422.578416, 5.603776, 74.781601},
    {1854.949056, 0.328361, 73.297127},
    {1433.754860, 1.782952, 149.563202},
    {805.805187,  4.522473, 76.266068},
    {776.046390,  3.860038, 63.735897},
    {704.559437,  1.401399, 454.909363},
    {581.829872,  1.580027, 138.517502},
    {493.465298,  1.570866, 71.812653},
    {436.488259,  1.998094, 1.484473},
    {402.315796,  2.791379, 148.078720},
    {379.085742,  1.383686, 11.045700},
    {305.273648,  0.174370, 36.648560},
    {299.676492,  3.661050, 109.945686},
    {267.252689,  4.245090, 224.344803},
    {216.048606,  1.399770, 35.164089},
    {197.549994,  3.362350, 277.035004},
    {197.509493,  1.669710, 70.849449},
    {191.715936,  3.886490, 146.594254},
    {174.209644,  0.701000, 151.047668},
    {170.751281,  3.180560, 77.750542},
    {160.580198,  3.785380, 85.827301},
    {160.062488,  5.256560, 380.127777},
    {150.455974,  0.725190, 529.690979},
    {143.083891,  2.796400, 70.328178},
    {143.080397,  1.555890, 202.253403},
    {133.794619,  0.554550, 2.968950},
    {124.511044,  5.354050, 38.133041},
    {121.251804,  4.904340, 108.461220},
    {113.564959,  2.621540, 111.430161},
    {111.031527,  5.960390, 127.471802},
    {109.357213,  1.750440, 984.600342},
    {108.871484,  0.993430, 52.690201},
    {108.148047,  3.298260, 3.932150},
    {107.214738,  0.437740, 65.220367},
    {103.889364,  1.421050, 213.299103},
    {95.451558, 4.996400, 62.251400},
    {91.766007, 5.253500, 222.860306},
    {91.662424, 5.038800, 415.552490},
    {86.307589, 0.794900, 351.816589},
    {85.609579, 3.972800, 183.242798},
    {77.756029, 5.679600, 78.713799},
    {74.323617, 3.115000, 9.561200},
    {73.790243, 5.105800, 145.109802},
    {72.374028, 2.629600, 33.679600},
    {63.867049, 3.220600, 340.770905},
    {62.601917, 4.250200, 39.617500},
    {61.660360, 6.109900, 184.727295},
    {61.489837, 3.458400, 456.393799},
    {60.720672, 2.487200, 453.424896},
    {55.695601, 4.140300, 219.891403},
    {54.433446, 0.829800, 56.622398},
    {54.240206, 0.423900, 299.126404},
    {54.221767, 2.146400, 137.033005},
    {54.203321, 3.676600, 140.001999},
    {53.525695, 0.310000, 12.530200},
    {50.378567, 4.854600, 131.403900},
    {48.620983, 0.442500, 554.070007},
    {46.722586, 2.940400, 305.346191}
};

CONST VSOP87Coefficient R1UranusCoefficients[] =
{
    {1216.509762, 3.672057, 74.781601},
    {266.855766,  6.226010, 63.735901},
    {261.967555,  6.134110, 149.563202},
    {155.112862,  3.141590, 0.000000},
    {146.519623,  2.601770, 76.266068},
    {144.419528,  5.246250, 11.045700},
    {106.794195,  0.018480, 70.849449},
    {86.585218, 0.423600, 73.297096},
    {65.145990, 1.416900, 85.827301},
    {62.665780, 3.155100, 71.812698},
    {59.816386, 2.311600, 224.344803},
    {59.211485, 2.583500, 138.517502},
    {56.824291, 5.255000, 3.932200},
    {55.317267, 0.153200, 1.484500},
    {50.635956, 0.980800, 148.078705},
    {49.284886, 3.994400, 52.690201},
    {40.558600, 2.653500, 127.471802},
    {39.799497, 1.430500, 78.713799},
    {38.832976, 5.060000, 151.047699},
    {38.600518, 2.675600, 56.622398},
    {37.589892, 4.574600, 202.253403},
    {37.456642, 1.369900, 77.750504},
    {35.042831, 1.047000, 62.251400},
    {32.140317, 0.264600, 131.403900},
    {31.496031, 2.172000, 65.220001},
    {29.359837, 5.055000, 351.816986},
    {27.276363, 3.076000, 35.164001},
    {26.210685, 2.499000, 77.962997},
    {25.436195, 4.473000, 70.328003},
    {24.979992, 0.863000, 9.561000},
    {24.576411, 0.907000, 984.599976},
    {23.979158, 3.231000, 447.795990},
    {23.706539, 2.718000, 462.023010},
    {23.021729, 5.917000, 213.298996},
    {22.978251, 5.151000, 2.969000}
};

CONST VSOP87Coefficient R2UranusCoefficients[] =
{
    {149.799866,  0.699530, 74.781601},
    {68.753182, 1.699000, 63.735901},
    {41.012193, 4.648300, 70.849403},
    {40.620192, 3.096600, 11.045700},
    {37.868192, 3.521200, 149.563202},
    {27.748874, 0.000000, 0.000000},
    {22.360680, 6.172000, 76.265999},
    {21.470911, 0.767000, 3.932000},
    {19.748418, 4.496000, 56.622002},
    {19.748418, 5.527000, 85.827003},
    {17.088007, 0.204000, 52.689999},
    {16.941074, 3.534000, 73.296997},
    {16.522712, 3.847000, 138.516998},
    {14.832397, 1.964000, 131.404007},
    {14.696938, 0.848000, 77.962997},
    {14.317821, 3.248000, 78.713997},
    {12.206556, 4.898000, 127.472000},
    {11.357817, 2.081000, 3.181000}
};

CONST VSOP87Coefficient R3UranusCoefficients[] =
{
    {34.117444, 4.734500, 74.781601},
    {14.560220, 3.343000, 63.736000},
    {14.000000, 2.980000, 70.848999},
    {10.246951, 0.958000, 11.046000},
    {8.544004,  1.000000, 149.559998},
    {8.485281,  0.030000, 56.619999},
    {7.416198,  2.590000, 3.930000},
    {6.000000,  5.650000, 77.959999},
    {5.830952,  3.820000, 76.269997},
    {5.656854,  3.600000, 131.399994}
};

CONST VSOP87Coefficient R4UranusCoefficients[] =
{
    {7.280110,  3.010000, 74.779999},
    {3.162278,  1.910000, 56.619999}
};


////////////////////////////////////////////////////////////
//
//         Tables of VSOP87 terms for Neptune.
//

CONST VSOP87Coefficient L0NeptuneCoefficients[] =
{
    {23047.529868,  0.000000, 0.000000},
    {1341.072705, 2.901013, 38.133034},
    {1009.815825, 0.485809, 1.484473},
    {352.890918,  4.830081, 36.648563},
    {205.095100,  5.410550, 2.968950},
    {194.203502,  6.092220, 35.164089},
    {183.806964,  1.244890, 76.266068},
    {128.386136,  0.000080, 491.557922},
    {95.911417, 4.937500, 39.617500},
    {94.836702, 0.274600, 175.166107},
    {64.930732, 1.987100, 73.297096},
    {58.008620, 1.035900, 33.679600},
    {47.801674, 4.206100, 4.453400},
    {37.868192, 2.783400, 74.781601},
    {30.000000, 2.076000, 109.945999},
    {27.294688, 3.190000, 71.813004},
    {22.494444, 5.748000, 114.399002},
    {20.000000, 0.350000, 1021.249023},
    {18.574176, 3.462000, 41.102001},
    {18.439089, 3.304000, 77.750999},
    {17.972201, 2.248000, 32.195000},
    {17.492856, 0.497000, 0.521000},
    {16.941074, 4.505000, 0.048000},
    {16.792856, 2.246000, 146.593994},
    {16.340135, 4.889000, 0.963000},
    {15.874508, 5.782000, 388.464996},
    {15.652476, 1.247000, 9.561000},
    {15.264338, 2.505000, 137.033005},
    {15.066519, 1.797000, 453.424988},
    {13.038405, 3.324000, 108.460999},
    {12.288206, 2.192000, 33.939999},
    {12.247449, 2.997000, 5.938000},
    {12.165525, 0.859000, 111.430000},
    {10.908712, 3.677000, 2.448000},
    {10.440307, 2.416000, 183.242996},
    {10.148892, 0.041000, 0.261000},
    {10.148892, 4.404000, 70.328003},
    {10.099505, 5.705000, 0.112000}
};

CONST VSOP87Coefficient L1NeptuneCoefficients[] =
{
    {61949.073577,  0.000000, 0.000000},
    {128.856509,  4.863190, 1.484470},
    {125.725892,  2.279230, 38.133041},
    {57.749459, 3.682000, 76.266098},
    {36.138622, 3.673200, 2.968900},
    {24.596748, 1.505000, 35.164001},
    {13.379088, 3.453000, 39.618000},
    {10.344080, 2.451000, 4.453000},
    {10.295630, 2.755000, 33.680000},
    {8.544004,  5.490000, 36.650002},
    {7.549834,  1.860000, 114.400002},
    {7.549834,  5.220000, 0.520000},
    {5.916080,  4.520000, 74.779999},
    {5.656854,  5.900000, 77.750000},
    {5.477226,  3.670000, 388.470001},
    {5.385165,  5.170000, 9.560000},
    {5.385165,  5.170000, 2.450000},
    {5.099020,  5.250000, 168.050003}
};

CONST VSOP87Coefficient L2NeptuneCoefficients[] =
{
    {232.148659,  0.000000, 0.000000},
    {17.204651, 1.855000, 1.484000},
    {16.763055, 1.191000, 38.132999},
    {16.431677, 5.721000, 76.265999},
    {4.795832,  1.210000, 2.970000},
    {3.000000,  4.430000, 35.160000},
    {2.645751,  0.540000, 2.450000}
};

CONST VSOP87Coefficient L3NeptuneCoefficients[] =
{
    {5.567764,  0.000000, 0.000000},
    {3.872983,  1.350000, 76.269997},
    {3.464102,  6.040000, 1.480000},
    {3.464102,  6.110000, 38.130001}
};

CONST VSOP87Coefficient L4NeptuneCoefficients[] =
{
    {10.677078, 3.142000, 0.000000}
};


CONST VSOP87Coefficient B0NeptuneCoefficients[] =
{
    {1757.447866, 1.441044, 38.133034},
    {166.673333,  5.912720, 76.266068},
    {166.204693,  0.000000, 0.000000},
    {124.289984,  3.508770, 39.617512},
    {123.915294,  2.521240, 36.648560},
    {44.721360, 1.510000, 74.781601},
    {44.362146, 4.377800, 1.484500},
    {31.859065, 3.215600, 35.164101},
    {24.617067, 2.802000, 73.296997},
    {24.392622, 2.129000, 41.102001},
    {24.269322, 3.187000, 2.969000},
    {20.049938, 4.169000, 114.399002},
    {16.733201, 1.682000, 77.750999},
    {16.186414, 3.767000, 213.298996},
    {15.937377, 3.271000, 453.424988},
    {14.352700, 4.257000, 529.690979},
    {11.832160, 3.530000, 137.033005}
};

CONST VSOP87Coefficient B1NeptuneCoefficients[] =
{
    {476.737873,  3.807931, 38.133038},
    {42.461747, 1.975800, 76.266098},
    {37.854986, 3.141600, 0.000000},
    {37.229021, 4.825600, 36.648602},
    {32.756679, 6.080500, 39.617500},
    {12.165525, 3.858000, 74.781998},
    {11.661904, 0.478000, 1.484000},
    {8.366600,  6.190000, 35.160000},
    {7.211103,  5.050000, 73.300003},
    {6.557439,  0.310000, 114.400002},
    {6.082763,  4.890000, 41.099998},
    {6.082763,  5.760000, 2.970000},
    {5.099020,  5.220000, 213.300003}
};

CONST VSOP87Coefficient B2NeptuneCoefficients[] =
{
    {98.442877, 5.571200, 38.132999},
    {8.888194,  3.630000, 76.269997},
    {8.485281,  0.450000, 36.650002},
    {7.681146,  3.140000, 0.000000},
    {5.477226,  1.610000, 39.619999},
    {2.449490,  5.610000, 74.779999}
};

CONST VSOP87Coefficient B3NeptuneCoefficients[] =
{
    {16.522712, 1.017000, 38.132999},
    {1.414214,  0.000000, 0.000000},
    {1.414214,  2.370000, 36.650002},
    {1.414214,  5.330000, 76.269997}
};

CONST VSOP87Coefficient B4NeptuneCoefficients[] =
{
    {2.449490,  2.670000, 38.130001}
};


CONST VSOP87Coefficient R0NeptuneCoefficients[] =
{
    {54836.239897,  0.000000, 0.000000},
    {5202.139848, 1.329995, 38.133034},
    {1300.678285, 3.251861, 36.648563},
    {898.794192,  5.185928, 1.484473},
    {733.321894,  4.521139, 35.164089},
    {704.078121,  1.571057, 491.557922},
    {523.996183,  1.845523, 175.166061},
    {367.605767,  3.372206, 39.617508},
    {349.001433,  5.797544, 76.266068},
    {317.639733,  0.377027, 73.297127},
    {264.181756,  3.796170, 2.968950},
    {216.074061,  5.749380, 33.679619},
    {156.824743,  0.508020, 109.945686},
    {130.149914,  1.594220, 71.812653},
    {119.289564,  1.077860, 74.781601},
    {109.599270,  1.920620, 1021.248901},
    {91.624233, 0.678200, 146.594299},
    {87.017240, 1.071500, 388.465210},
    {75.637292, 2.590600, 4.453400},
    {69.570109, 1.906900, 41.102001},
    {66.955209, 2.905700, 529.690979},
    {66.490601, 1.749900, 108.461197},
    {65.984847, 0.679900, 32.195099},
    {65.345237, 3.413400, 453.424896},
    {58.146367, 0.848100, 183.242798},
    {53.674948, 1.986000, 137.033005},
    {53.656314, 3.674200, 350.332092},
    {51.341991, 3.097600, 213.299103},
    {50.299105, 5.798400, 490.073486},
    {50.229473, 0.486300, 493.042389},
    {48.020829, 2.809600, 70.328201},
    {45.683695, 0.618600, 33.940201}
};

CONST VSOP87Coefficient R1NeptuneCoefficients[] =
{
    {486.147097,  0.704980, 38.133038},
    {114.978259,  3.320150, 1.484470},
    {92.854725, 6.216300, 35.164101},
    {51.980766, 1.881400, 39.617500},
    {46.421978, 2.094300, 2.968900},
    {46.400431, 5.168700, 76.266098},
    {40.037482, 0.000000, 0.000000},
    {38.262253, 1.184200, 33.679600},
    {33.704599, 3.918900, 36.648602},
    {29.966648, 5.241000, 388.464996},
    {28.106939, 0.533000, 168.052994},
    {27.568098, 0.021000, 182.279999},
    {24.637370, 1.077000, 1021.249023},
    {23.916521, 3.401000, 484.444000},
    {23.685439, 2.887000, 498.670990}
};

CONST VSOP87Coefficient R2NeptuneCoefficients[] =
{
    {65.169011, 5.899100, 38.132999},
    {14.764823, 0.346000, 1.484000},
    {12.767145, 2.239000, 168.052994},
    {12.489996, 4.594000, 182.279999},
    {11.269428, 2.848000, 35.164001}
};

CONST VSOP87Coefficient R3NeptuneCoefficients[] =
{
    {12.884099, 4.552000, 38.132999}
};

#endif